mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -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[]) => {
|
const onAddToAlbum = (assetIds: string[]) => {
|
||||||
|
cancelMultiselect(assetInteraction);
|
||||||
|
|
||||||
if (terms.isNotInAlbum.toString() == 'true') {
|
if (terms.isNotInAlbum.toString() == 'true') {
|
||||||
const assetIdSet = new Set(assetIds);
|
const assetIdSet = new Set(assetIds);
|
||||||
searchResultAssets = searchResultAssets.filter((a: AssetResponseDto) => !assetIdSet.has(a.id));
|
searchResultAssets = searchResultAssets.filter((a: AssetResponseDto) => !assetIdSet.has(a.id));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user