Skip to content

Commit cbf8cae

Browse files
committed
fix
1 parent 5aa4f2c commit cbf8cae

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

web/src/lib/components/photos-page/asset-grid.svelte

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -449,19 +449,21 @@
449449
</section>
450450

451451
<Portal target="body">
452-
{#await import('../asset-viewer/asset-viewer.svelte') then AssetViewer}
453-
<AssetViewer.default
454-
{withStacked}
455-
{assetStore}
456-
asset={$viewingAsset}
457-
{isShared}
458-
{album}
459-
on:previous={handlePrevious}
460-
on:next={handleNext}
461-
on:close={handleClose}
462-
on:action={({ detail: action }) => handleAction(action.type, action.asset)}
463-
/>
464-
{/await}
452+
{#if $showAssetViewer}
453+
{#await import('../asset-viewer/asset-viewer.svelte') then AssetViewer}
454+
<AssetViewer.default
455+
{withStacked}
456+
{assetStore}
457+
asset={$viewingAsset}
458+
{isShared}
459+
{album}
460+
on:previous={handlePrevious}
461+
on:next={handleNext}
462+
on:close={handleClose}
463+
on:action={({ detail: action }) => handleAction(action.type, action.asset)}
464+
/>
465+
{/await}
466+
{/if}
465467
</Portal>
466468

467469
<style>

0 commit comments

Comments
 (0)