1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-15 03:30:33 +02:00

feat(web): avoid duplicate call + small refactor (#1731)

This commit is contained in:
Michel Heusschen
2023-02-12 05:36:26 +01:00
committed by GitHub
parent 6b3892987a
commit 53fb3a36f7
5 changed files with 55 additions and 105 deletions

View File

@ -304,7 +304,7 @@
on:onVideoEnded={() => (shouldPlayMotionPhoto = false)}
/>
{:else}
<PhotoViewer {publicSharedKey} assetId={asset.id} on:close={closeViewer} />
<PhotoViewer {publicSharedKey} {asset} on:close={closeViewer} />
{/if}
{:else}
<VideoViewer {publicSharedKey} assetId={asset.id} on:close={closeViewer} />