fix: correctly cancel select all assets (#26067)

This commit is contained in:
Michel Heusschen
2026-02-10 17:47:23 +01:00
committed by GitHub
parent e6e56d75e2
commit a9e0fa43fa
6 changed files with 18 additions and 31 deletions
@@ -6,6 +6,7 @@ import { fromStore } from 'svelte/store';
export class AssetInteraction {
selectedAssets = $state<TimelineAsset[]>([]);
selectAll = $state(false);
hasSelectedAsset(assetId: string) {
return this.selectedAssets.some((asset) => asset.id === assetId);
}
@@ -65,6 +66,8 @@ export class AssetInteraction {
}
clearMultiselect() {
this.selectAll = false;
// Multi-selection
this.selectedAssets = [];
this.selectedGroup.clear();
@@ -1,3 +0,0 @@
import { writable } from 'svelte/store';
export const isSelectingAllAssets = writable(false);