Fixed: Issue searching for series in the UI when tag is removed
This commit is contained in:
parent
394932b57f
commit
c4c9f0e368
|
@ -28,9 +28,15 @@ function createCleanSeriesSelector() {
|
||||||
images,
|
images,
|
||||||
alternateTitles,
|
alternateTitles,
|
||||||
firstCharacter: title.charAt(0).toLowerCase(),
|
firstCharacter: title.charAt(0).toLowerCase(),
|
||||||
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;
|
||||||
|
}, [])
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue