diff --git a/web/src/lib/components/timeline/TimelineAssetViewer.svelte b/web/src/lib/components/timeline/TimelineAssetViewer.svelte index 91963a9fec..75f06b0843 100644 --- a/web/src/lib/components/timeline/TimelineAssetViewer.svelte +++ b/web/src/lib/components/timeline/TimelineAssetViewer.svelte @@ -81,8 +81,9 @@ //TODO: replace this with async derived in svelte 6 $effect(() => { const asset = assetViewerManager.asset; - if (asset) handlePromiseError(loadCloseAssets(asset)); - + if (asset) { + handlePromiseError(loadCloseAssets(asset)); + } }); const handleRandom = async () => {