Skip to content

Commit

Permalink
fix: clear multiselect when asset-grid is empty (#9864)
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal authored May 29, 2024
1 parent 9d0aceb commit 802b4ef
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 802b4ef

Please sign in to comment.