]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: workflow action reordering
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 17 Mar 2024 22:43:08 +0000 (15:43 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sun, 17 Mar 2024 22:44:10 +0000 (15:44 -0700)
src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts

index 77e079fd260d90ddd12611746d29581025b06114..588202b899d1d8e623c1c94c84e586b2b0809118 100644 (file)
@@ -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 })
+    )
   }
 }