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/9116

Vanessad5dd47a63a4e
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index 33977b6581..0331a9fe9f 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -38,7 +38,7 @@ openWindow = (options: {
id: string, // 块 id
},
}) => {
- if (options.doc.id) {
+ if (options.doc && options.doc.id) {
openNewWindowById(options.doc.id, {position: options.position, width: options.width, height: options.height});
return;
}