From cd0900f0a57fd512b7301330e57717027c58210a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 25 Dec 2023 22:11:41 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9717 --- app/src/mobile/menu/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.ts index 9d4752b09..c49d8f09e 100644 --- a/app/src/mobile/menu/search.ts +++ b/app/src/mobile/menu/search.ts @@ -573,7 +573,7 @@ const initSearchEvent = (app: App, element: Element, config: ISearchOption) => { } else if (target.getAttribute("data-type") === "search-item") { const id = target.getAttribute("data-node-id"); if (id) { - if (window.siyuan.mobile.editor.protyle) { + if (window.siyuan.mobile.editor?.protyle) { preventScroll(window.siyuan.mobile.editor.protyle); } checkFold(id, (zoomIn) => {