1
0

fix: clear re-match selection when searching again

This commit is contained in:
2026-08-29 23:27:54 +02:00
parent e912d9e485
commit 71423c7ab7
2 changed files with 21 additions and 1 deletions

View File

@@ -25,7 +25,10 @@ export default function ItemPage() {
function searchAlbums() {
void api
.searchAlbums(albumQuery)
.then((res) => setAlbums(res.albums))
.then((res) => {
setAlbums(res.albums)
setPickedAlbum(null)
})
.catch(() => setAlbums([]))
}