Fixed: Issue searching for artist in the UI when tag is removed

pull/908/head
Qstick 5 years ago
parent 68e11a5e56
commit 9ca81eb320

@ -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…
Cancel
Save