perf(web): batch asset store changes (#7974)

* perf(web): batch asset store changes

* update external calls to assetstore
This commit is contained in:
Michel Heusschen 2024-03-15 17:11:29 +01:00 committed by GitHub
parent a3dfa27a53
commit 5a6b71dda3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 118 additions and 66 deletions

View file

@ -169,12 +169,12 @@
case AssetAction.UNARCHIVE:
case AssetAction.FAVORITE:
case AssetAction.UNFAVORITE: {
assetStore.updateAsset(asset);
assetStore.updateAssets([asset]);
break;
}
case AssetAction.ADD: {
assetStore.addAsset(asset);
assetStore.addAssets([asset]);
break;
}
}