This commit is contained in:
Vanessa 2023-11-20 22:38:18 +08:00
parent ef1fdbf9c8
commit 686b3fc18f

View file

@ -409,7 +409,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo
event.preventDefault();
break;
} else if (target.classList.contains("b3-chip__close") && type === "remove-criteria") {
const name = target.parentElement.innerText;
const name = target.parentElement.textContent;
fetchPost("/api/storage/removeCriterion", {name});
criteriaData.find((item, index) => {
if (item.name === name) {