]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Change: show preview even if metadata fails (#5706)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 9 Feb 2024 19:35:32 +0000 (11:35 -0800)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2024 19:35:32 +0000 (11:35 -0800)
src-ui/src/app/components/document-detail/document-detail.component.ts

index a1162ab7fcfbbeacabdea33fe9a5acf40c1e64d7..6630f0ad69130a9baa240a816ad8df19ca5821c8 100644 (file)
@@ -487,7 +487,7 @@ export class DocumentDetailComponent
           this.metadata = result
         },
         error: (error) => {
-          this.metadata = null
+          this.metadata = {} // allow display to fallback to <object> tag
           this.toastService.showError(
             $localize`Error retrieving metadata`,
             error