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/16732 2

Vanessa0bd806b4fcb3
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index 1a12eb66c3..2e06a4249f 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -294,7 +294,7 @@ export class Protyle {
private onTransaction(data: IWebSocketData) {
if (!this.protyle.preview.element.classList.contains("fn__none") &&
- data.context.rootIDs.includes(this.protyle.block.rootID)) {
+ data.context?.rootIDs?.includes(this.protyle.block.rootID)) {
this.protyle.preview.render(this.protyle);
return;
}