mirror of
https://github.com/immich-app/immich.git
synced 2025-10-25 15:52: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 albums = new Set(albumModalRows.filter((row) => row.multiSelected).map(({ album }) => album!));
|
||||
if (albums.size > 0) {
|
||||
onClose([...albums]);
|
||||
const selectedAlbums = new Set(albums.filter(({ id }) => multiSelectedAlbumIds.includes(id)));
|
||||
if (selectedAlbums.size > 0) {
|
||||
onClose([...selectedAlbums]);
|
||||
} else {
|
||||
onClose();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user