An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
fix issue of accessing undefined `tab.headElement` (#8363)
Yingyi / 颖逸fc15f39ece25
diff --git a/app/src/layout/dock/Custom.ts b/app/src/layout/dock/Custom.tsindex 700047ea9e..34a7e056a1 100644--- a/app/src/layout/dock/Custom.ts+++ b/app/src/layout/dock/Custom.ts@@ -24,7 +24,7 @@ export class Custom extends Model {}) {super({app: options.app, id: options.tab.id});if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {- options.tab.headElement.classList.add("item--unupdate");+ options.tab.headElement?.classList.add("item--unupdate");}this.element = options.tab.panelElement;