mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-31 13:59:43 +00:00
Fixed: Issue searching for artist in the UI when tag is removed
This commit is contained in:
@@ -25,9 +25,15 @@ function createCleanArtistSelector() {
|
||||
sortName,
|
||||
foreignArtistId,
|
||||
images,
|
||||
tags: tags.map((id) => {
|
||||
return allTags.find((tag) => tag.id === id);
|
||||
})
|
||||
tags: tags.reduce((acc, id) => {
|
||||
const matchingTag = allTags.find((tag) => tag.id === id);
|
||||
|
||||
if (matchingTag) {
|
||||
acc.push(matchingTag);
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, [])
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user