From 51dc197b33f4b56a639b27a79904b98661540f47 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Fri, 27 Oct 2023 20:57:37 -0500 Subject: [PATCH] fix(web): stacked vs normal asset rendering --- .../lib/components/asset-viewer/asset-viewer.svelte | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index 73bdc77b16..002c585eea 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -57,7 +57,6 @@ let shouldShowDetailButton = asset.hasMetadata; let canCopyImagesToClipboard: boolean; let previewStackedAsset: AssetResponseDto | undefined; - $: displayedAsset = previewStackedAsset || asset; $: { if (asset.stackCount && asset.stack) { @@ -471,17 +470,15 @@ {/if} -
- - {#if displayedAsset} - {#key displayedAsset.id} - {#if displayedAsset.type === AssetTypeEnum.Image} - + {#if previewStackedAsset} + {#key previewStackedAsset.id} + {#if previewStackedAsset.type === AssetTypeEnum.Image} + {:else}