This commit is contained in:
Vanessa 2023-08-25 17:04:49 +08:00
parent 443c1423d8
commit ccff6efc98

View file

@ -56,7 +56,7 @@ export const removeSearchMark = (element: HTMLElement) => {
}
}
if (element.getAttribute("data-type").includes("search-mark")) {
if ((element.getAttribute("data-type") || "").includes("search-mark")) {
element.setAttribute("data-type", element.getAttribute("data-type").replace("search-mark", "").trim());
}
};