Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: workflow action reordering

shamoonb1aa57abcb34
diff --git a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts
index 77e079fd2..588202b89 100644
--- a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts
+++ b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts
@@ -481,5 +481,8 @@ export class WorkflowEditDialogComponent
this.actionFields.insert(event.currentIndex, actionField)
// removing id will effectively re-create the actions in this order
this.object.actions.forEach((a) => (a.id = null))
+ this.actionFields.controls.forEach((c) =>
+ c.get('id').setValue(null, { emitEvent: false })
+ )
}
}