fix: clear re-match selection when searching again
This commit is contained in:
@@ -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([]))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user