From ccff6efc9831415017ef108ff67e2b10aad5b9aa Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 25 Aug 2023 17:04:49 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/9020 --- app/src/protyle/toolbar/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.ts index f177d7f6a..e49c8f839 100644 --- a/app/src/protyle/toolbar/util.ts +++ b/app/src/protyle/toolbar/util.ts @@ -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()); } };