mirror of
https://github.com/immich-app/immich.git
synced 2025-01-16 16:56:46 +01:00
fix: clear multiselect when asset-grid is empty (#9864)
This commit is contained in:
parent
9d0aceb768
commit
802b4ef190
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue