mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix error case
[ci skip]
This commit is contained in:
		| @@ -161,7 +161,10 @@ export class DocumentListViewService { | ||||
|             this.reload() | ||||
|           } else { | ||||
|             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> } | ||||
|               errorMessage = Object.keys(error.error) | ||||
|                 .map((fieldName) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon