mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 21:42:16 -07:00
Fixed: Issue searching for artist in the UI when tag is removed
This commit is contained in:
parent
68e11a5e56
commit
9ca81eb320
1 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
}, [])
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue