diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts index d15916e8b..3335e9a02 100644 --- a/app/src/mobile/util/initFramework.ts +++ b/app/src/mobile/util/initFramework.ts @@ -99,7 +99,7 @@ export const initFramework = (app: App, isStart: boolean) => { window.siyuan.mobile.docks.outline = new MobileOutline({ app, blockId: window.siyuan.mobile.editor?.protyle.block.rootID, - isPreview: window.siyuan.mobile.editor?.protyle.preview.element.classList.contains("fn__none") + isPreview: window.siyuan.mobile.editor ? !window.siyuan.mobile.editor.protyle.preview.element.classList.contains("fn__none") : false }); } else { fetchPost("/api/outline/getDocOutline", {