refactor: asset select manager (#27329)

This commit is contained in:
Jason Rasmussen
2026-03-27 14:23:33 -04:00
committed by GitHub
parent 14cce0cba3
commit 5889c42eb6
17 changed files with 33 additions and 68 deletions
@@ -43,7 +43,8 @@ export class AssetMultiSelectManager {
asControlContext(): AssetControlContext {
return {
getOwnedAssets: () => this.assets.filter((asset) => asset.ownerId === this.#userId),
getOwnedAssets: () =>
this.#userId ? this.assets.filter((asset) => asset.ownerId === this.#userId) : this.assets,
getAssets: () => this.assets,
clearSelect: () => this.clear(),
};