From 3c1a83446b9599db20ae9b02b1bd5dcd8cb235e3 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:39:11 -0800 Subject: [PATCH] Move a bit sooner --- .../components/document-detail/document-detail.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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