mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 09:12:56 +02:00
feat(web): un-stack from the photos page ; fix stack count (#8419)
* feat(web): un-stack from the photos page ; fix stack count * move stuff outside of try-catch block * small optim
This commit is contained in:
parent
a3feca2580
commit
c227f9893e
6 changed files with 129 additions and 60 deletions
web/src/lib/components/photos-page
|
@ -89,11 +89,10 @@
|
|||
};
|
||||
|
||||
const onStackAssets = async () => {
|
||||
if ($selectedAssets.size > 1) {
|
||||
await stackAssets(Array.from($selectedAssets), (ids) => {
|
||||
assetStore.removeAssets(ids);
|
||||
dispatch('escape');
|
||||
});
|
||||
const ids = await stackAssets(Array.from($selectedAssets));
|
||||
if (ids) {
|
||||
assetStore.removeAssets(ids);
|
||||
dispatch('escape');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue