mirror of
https://github.com/zebrajr/immich.git
synced 2025-12-06 00:20:20 +01: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…
Reference in New Issue
Block a user