mirror of
https://github.com/immich-app/immich.git
synced 2025-11-29 20:49:45 +09:00
fix: clear multiselect when asset-grid is empty (#9864)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user