fix(web): prevent race when editing album description during upload (#31758)
Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Dietzler
parent
7f14913626
commit
647a445d9a
+3
-2
@@ -291,12 +291,13 @@
|
||||
viewMode = AlbumPageViewMode.VIEW;
|
||||
};
|
||||
|
||||
const onAlbumAddAssets = async ({ albumIds }: { albumIds: string[] }) => {
|
||||
const onAlbumAddAssets = async ({ albumIds, assetIds }: { albumIds: string[]; assetIds: string[] }) => {
|
||||
if (!albumIds.includes(album.id)) {
|
||||
return;
|
||||
}
|
||||
|
||||
await refreshAlbum();
|
||||
album = { ...album, assetCount: album.assetCount + assetIds.length };
|
||||
|
||||
timelineMultiSelectManager.clear();
|
||||
await setModeToView();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user