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

This reverts commit 53fb3a36f7.
This commit is contained in:
Alex
2023-02-13 16:27:15 -06:00
committed by GitHub
parent 318fba6c97
commit db67093391
5 changed files with 105 additions and 55 deletions

View File

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