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 74acf3b2f..0cdda268e 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 @@ -548,6 +548,9 @@ export class DocumentDetailComponent this.document = doc this.requiresPassword = false this.updateFormForCustomFields() + if (this.archiveContentRenderType === ContentRenderType.TIFF) { + this.tryRenderTiff() + } this.documentsService .getMetadata(doc.id) .pipe( @@ -561,9 +564,6 @@ export class DocumentDetailComponent if (this.archiveContentRenderType !== ContentRenderType.PDF) { this.previewLoaded = true } - if (this.archiveContentRenderType === ContentRenderType.TIFF) { - this.tryRenderTiff() - } }, error: (error) => { this.metadata = {} // allow display to fallback to tag