mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-15 10:13:15 -05:00
Fix: workflow action reordering
This commit is contained in:
parent
df359730fe
commit
b1aa57abcb
@ -481,5 +481,8 @@ export class WorkflowEditDialogComponent
|
|||||||
this.actionFields.insert(event.currentIndex, actionField)
|
this.actionFields.insert(event.currentIndex, actionField)
|
||||||
// removing id will effectively re-create the actions in this order
|
// removing id will effectively re-create the actions in this order
|
||||||
this.object.actions.forEach((a) => (a.id = null))
|
this.object.actions.forEach((a) => (a.id = null))
|
||||||
|
this.actionFields.controls.forEach((c) =>
|
||||||
|
c.get('id').setValue(null, { emitEvent: false })
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user