fix(web): album multi-select filter doesn't include other selected albums (#21322)
- submit albums directly from selected ids instead of albumModalRowspull/21326/head
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…
Reference in New Issue