fix(integrations): filter out null steps, delete filterExpression from step
@@ -454,10 +454,12 @@ export class CurrentFlow {
set integration(i: Integration) {
this._integration = <Integration>i;
if (i && i.steps && i.steps.length) {
+ i.steps = i.steps.filter((step) => step !== null);
i.steps.forEach((step) => {
if ('filterExpression' in step) {
step.stepKind = 'rule-filter';
step.name = 'Rule Filter';
+ delete step['filterExpression'];
}
});
}
