mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Fix: workflow action reordering
This commit is contained in:
parent
d15a3c0373
commit
65bc0ba0d2
@ -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