diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 9368b2f8..b8a3b583 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -368,4 +368,17 @@ export class WorkflowGenerator { }; + private removeAllGeneratedFlags = (workflow: WorkflowFile): WorkflowFile => { + for (let i = 0; i < workflow.workflow.length; i++) { + if ( + workflow.workflow[i].what[0] && + workflow.workflow[i].what[0].action === 'flag' && + workflow.workflow[i].what[0].args?.includes('generated')) { + workflow.workflow[i].what.splice(0, 1); + } + } + return workflow; + }; + + }