mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
Fix edit dialog error surfacing
This commit is contained in:
parent
f56ccec77f
commit
c5a21a3b0e
3 changed files with 177 additions and 155 deletions
|
|
@ -102,6 +102,7 @@ export abstract class EditDialogComponent<
|
|||
}
|
||||
|
||||
save() {
|
||||
this.error = null
|
||||
const formValues = Object.assign({}, this.objectForm.value)
|
||||
const permissionsObject: PermissionsFormObject =
|
||||
this.objectForm.get('permissions_form')?.value
|
||||
|
|
@ -131,7 +132,7 @@ export abstract class EditDialogComponent<
|
|||
error: (error) => {
|
||||
this.error = error.error
|
||||
this.networkActive = false
|
||||
this.succeeded.error(error)
|
||||
this.succeeded.next(error)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue