From b1aa57abcb34cacdf69990e66c5835e8fbe80bf2 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 17 Mar 2024 15:43:08 -0700 Subject: [PATCH] Fix: workflow action reordering --- .../workflow-edit-dialog/workflow-edit-dialog.component.ts | 3 +++ 1 file changed, 3 insertions(+) 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 }) + ) } }