mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04: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:
parent
bc90678276
commit
ce456709b5
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user