mirror of
https://github.com/immich-app/immich.git
synced 2025-10-26 08:12:33 -04: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
@ -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…
x
Reference in New Issue
Block a user