mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 04:05:39 -04:00
fix: clear multiselect when asset-grid is empty (#9864)
This commit is contained in:
parent
9d0aceb768
commit
802b4ef190
@ -48,6 +48,11 @@
|
|||||||
$: timelineY = element?.scrollTop || 0;
|
$: timelineY = element?.scrollTop || 0;
|
||||||
$: isEmpty = $assetStore.initialized && $assetStore.buckets.length === 0;
|
$: isEmpty = $assetStore.initialized && $assetStore.buckets.length === 0;
|
||||||
$: idsSelectedAssets = [...$selectedAssets].map(({ id }) => id);
|
$: idsSelectedAssets = [...$selectedAssets].map(({ id }) => id);
|
||||||
|
$: {
|
||||||
|
if (isEmpty) {
|
||||||
|
assetInteractionStore.clearMultiselect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
void assetStore.updateViewport(viewport);
|
void assetStore.updateViewport(viewport);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user