mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
parent
199fc6be94
commit
19d5feb483
2 changed files with 11 additions and 2 deletions
|
|
@ -243,8 +243,12 @@ export class DocumentListComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
$localize`View "${savedView.name}" created successfully.`
|
||||
)
|
||||
},
|
||||
error: (error) => {
|
||||
modal.componentInstance.error = error.error
|
||||
error: (httpError) => {
|
||||
let error = httpError.error
|
||||
if (error.filter_rules) {
|
||||
error.filter_rules = error.filter_rules.map((r) => r.value)
|
||||
}
|
||||
modal.componentInstance.error = error
|
||||
modal.componentInstance.buttonsEnabled = true
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue