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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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} />