fix(web): reset selection state when adding assets to a album (#16880)

* fix(web): cancel multiselect before adding assets to album

* chore: format with prettier

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Dmitry Vakhnenko 2025-03-19 03:11:58 +03:00 committed by GitHub
parent bc90678276
commit ce456709b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -237,6 +237,8 @@
}
const onAddToAlbum = (assetIds: string[]) => {
cancelMultiselect(assetInteraction);
if (terms.isNotInAlbum.toString() == 'true') {
const assetIdSet = new Set(assetIds);
searchResultAssets = searchResultAssets.filter((a: AssetResponseDto) => !assetIdSet.has(a.id));