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

Vanessacc6d880aa28e
diff --git a/app/src/layout/getTopBarHeight.ts b/app/src/layout/getTopBarHeight.ts
index c449490041..5c498d5219 100644
--- a/app/src/layout/getTopBarHeight.ts
+++ b/app/src/layout/getTopBarHeight.ts
@@ -1,3 +1,3 @@
export const getTopBarHeight = () => {
- return document.getElementById("sidebar") ? 0 : (document.getElementById("toolbar").clientHeight || document.querySelector(".layout-tab-bar").clientHeight);
+ return document.getElementById("sidebar") ? 0 : (document.getElementById("toolbar")?.clientHeight || document.querySelector(".layout-tab-bar").clientHeight);
};