mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
fix error case
[ci skip]
This commit is contained in:
parent
eb5e0e0b9b
commit
b5a75be1db
@ -161,7 +161,10 @@ export class DocumentListViewService {
|
|||||||
this.reload()
|
this.reload()
|
||||||
} else {
|
} else {
|
||||||
let errorMessage
|
let errorMessage
|
||||||
if (Object.keys(error.error).length > 0) {
|
if (
|
||||||
|
typeof error.error !== 'string' &&
|
||||||
|
Object.keys(error.error).length > 0
|
||||||
|
) {
|
||||||
// e.g. { archive_serial_number: Array<string> }
|
// e.g. { archive_serial_number: Array<string> }
|
||||||
errorMessage = Object.keys(error.error)
|
errorMessage = Object.keys(error.error)
|
||||||
.map((fieldName) => {
|
.map((fieldName) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user