mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix(web): album multi-select filter doesn't include other selected albums (#21322)
- submit albums directly from selected ids instead of albumModalRows
This commit is contained in:
parent
0eaa054218
commit
73e67ebfea
1 changed files with 3 additions and 3 deletions
|
|
@ -74,9 +74,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMultiSubmit = () => {
|
const handleMultiSubmit = () => {
|
||||||
const albums = new Set(albumModalRows.filter((row) => row.multiSelected).map(({ album }) => album!));
|
const selectedAlbums = new Set(albums.filter(({ id }) => multiSelectedAlbumIds.includes(id)));
|
||||||
if (albums.size > 0) {
|
if (selectedAlbums.size > 0) {
|
||||||
onClose([...albums]);
|
onClose([...selectedAlbums]);
|
||||||
} else {
|
} else {
|
||||||
onClose();
|
onClose();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue