Skip to content

Commit

Permalink
fix: clear multiselect when asset-grid is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed May 29, 2024
1 parent 61051ba commit 9b37b00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/src/lib/components/photos-page/asset-grid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
$: timelineY = element?.scrollTop || 0;
$: isEmpty = $assetStore.initialized && $assetStore.buckets.length === 0;
$: idsSelectedAssets = [...$selectedAssets].map(({ id }) => id);
$: {
if (isEmpty) {
assetInteractionStore.clearMultiselect();
}
}
$: {
void assetStore.updateViewport(viewport);
Expand Down

0 comments on commit 9b37b00

Please sign in to comment.