1
0
Fork 0
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:
martin 2024-05-29 21:11:00 +02:00 committed by GitHub
parent 9d0aceb768
commit 802b4ef190
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);