Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16546

Vanessa4df9a3b928d6
diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts
index c99ef1c8e5..9b851c0d29 100644
--- a/app/src/editor/util.ts
+++ b/app/src/editor/util.ts
@@ -428,7 +428,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod
pushBack(editor.editor.protyle, editor.editor.protyle.toolbar.range);
}
// https://github.com/siyuan-note/siyuan/issues/16445
- if (options.action.includes(Constants.CB_GET_OUTLINE)) {
+ if (options.action?.includes(Constants.CB_GET_OUTLINE)) {
hideElements(["select"], editor.editor.protyle);
}
if (options.mode) {