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

This commit is contained in:
Qstick 2019-08-04 21:50:54 -04:00
parent 68e11a5e56
commit 9ca81eb320

View file

@ -25,9 +25,15 @@ function createCleanArtistSelector() {
sortName, sortName,
foreignArtistId, foreignArtistId,
images, images,
tags: tags.map((id) => { tags: tags.reduce((acc, id) => {
return allTags.find((tag) => tag.id === id); const matchingTag = allTags.find((tag) => tag.id === id);
})
if (matchingTag) {
acc.push(matchingTag);
}
return acc;
}, [])
}; };
}); });
} }