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:
xCJPECKOVERx 2025-08-26 17:30:24 -04:00 committed by GitHub
parent 0eaa054218
commit 73e67ebfea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
} }