Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5127 1

Vanessa2f62002813fa
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index 58432aca03..42ca405ded 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -147,7 +147,7 @@ class Protyle {
}, getResponse => {
onGet(getResponse, this.protyle, options.action);
if (this.protyle.model) {
- if (options.action.includes(Constants.CB_GET_FOCUS)) {
+ if (options.action?.includes(Constants.CB_GET_FOCUS)) {
setPanelFocus(this.protyle.model.element.parentElement.parentElement);
}
updatePanelByEditor(this.protyle, false);