Change: show preview even if metadata fails (#5706)

This commit is contained in:
shamoon 2024-02-09 11:35:32 -08:00 committed by GitHub
parent 390c925c28
commit 952cbbae37

View File

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