1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-07 23:03:36 +02:00

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

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