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

Vanessa7e6fb4edee0d
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index 0fb155d408..d42fbc2de2 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -717,6 +717,9 @@ export class Wnd {
let openTime: string;
let removeCount = 0;
this.children.forEach((item, index) => {
+ if (!item.headElement) {
+ return;
+ }
if (item.headElement.classList.contains("item--pin") || item.headElement.classList.contains("item--focus")) {
return;
}