Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7041

Vanessa456bd7d16bfe
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index e55a94b74e..3adeac08df 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -209,7 +209,10 @@ export const progressStatus = (data: IWebSocketData) => {
}, 6000);
return;
}
- statusElement.querySelector(".status__msg").innerHTML = data.msg;
+ const msgElement = statusElement.querySelector(".status__msg");
+ if (msgElement) {
+ msgElement.innerHTML = data.msg;
+ }
};
export const progressLoading = (data: IWebSocketData) => {