Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9717

Vanessacd0900f0a57f
diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.ts
index 9d4752b090..c49d8f09ef 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) => {