Merge pull request #661 from getmaxun/decision-fix
fix: app crashing on decision handling
This commit is contained in:
@@ -174,9 +174,11 @@ export class WorkflowGenerator {
|
||||
switch (actionType) {
|
||||
case 'customAction':
|
||||
// pair.where.selectors = [this.generatedData.lastUsedSelector];
|
||||
pair.where.selectors = pair.where.selectors.filter(
|
||||
(selector: string) => selector !== this.generatedData.lastUsedSelector
|
||||
);
|
||||
if (pair.where.selectors) {
|
||||
pair.where.selectors = pair.where.selectors.filter(
|
||||
(selector: string) => selector !== this.generatedData.lastUsedSelector
|
||||
);
|
||||
}
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user