From b5a75be1db8c7d836aef11f8d0e5f269aac3c486 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:06:46 -0700 Subject: [PATCH] fix error case [ci skip] --- src-ui/src/app/services/document-list-view.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/services/document-list-view.service.ts b/src-ui/src/app/services/document-list-view.service.ts index e67ceda4b..b0d246a32 100644 --- a/src-ui/src/app/services/document-list-view.service.ts +++ b/src-ui/src/app/services/document-list-view.service.ts @@ -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 } errorMessage = Object.keys(error.error) .map((fieldName) => {