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
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;
}
}