From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:43:08 +0000 (-0700) Subject: Fix: workflow action reordering X-Git-Tag: v2.6.3~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1aa57abcb34cacdf69990e66c5835e8fbe80bf2;p=thirdparty%2Fpaperless-ngx.git Fix: workflow action reordering --- 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 77e079fd26..588202b899 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 }) + ) } }