fix chants search issue

This commit is contained in:
Gin
2023-05-11 12:47:01 +08:00
parent 5b9af499c3
commit 6b51dc806b

View File

@@ -8,7 +8,7 @@ class ChantParser extends BaseTagParser {
if (tagword !== "<" && tagword !== "<c:") {
let searchTerm = tagword.replace("<c:", "").replace("<", "");
let filterCondition = x => x.term.toLowerCase().includes(searchTerm);
tempResults = loras.filter(x => filterCondition(x)); // Filter by tagword
tempResults = chants.filter(x => filterCondition(x)); // Filter by tagword
} else {
tempResults = chants;
}