From cd3b1a221ea805beb6433c90618a47116a4d6575 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 9 Feb 2024 11:35:32 -0800 Subject: [PATCH] Change: show preview even if metadata fails (#5706) --- .../app/components/document-detail/document-detail.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index a1162ab7f..6630f0ad6 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -487,7 +487,7 @@ export class DocumentDetailComponent this.metadata = result }, error: (error) => { - this.metadata = null + this.metadata = {} // allow display to fallback to tag this.toastService.showError( $localize`Error retrieving metadata`, error