mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
fix(web): leave assets selected after add to album (#12537)
This commit is contained in:
parent
02047a0104
commit
9a9d64acd7
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
let showAlbumPicker = false;
|
let showAlbumPicker = false;
|
||||||
|
|
||||||
const { getAssets, clearSelect } = getAssetControlContext();
|
const { getAssets } = getAssetControlContext();
|
||||||
|
|
||||||
const handleHideAlbumPicker = () => {
|
const handleHideAlbumPicker = () => {
|
||||||
showAlbumPicker = false;
|
showAlbumPicker = false;
|
||||||
|
@ -28,7 +28,6 @@
|
||||||
showAlbumPicker = false;
|
showAlbumPicker = false;
|
||||||
const assetIds = [...getAssets()].map((asset) => asset.id);
|
const assetIds = [...getAssets()].map((asset) => asset.id);
|
||||||
await addAssetsToAlbum(album.id, assetIds);
|
await addAssetsToAlbum(album.id, assetIds);
|
||||||
clearSelect();
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue