Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5641

Vanessa929af3255afa
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index afdace75d4..4bd72cbe39 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -115,10 +115,11 @@ const dockToJSON = (dock: Dock) => {
return data;
};
const data0 = subDockToJSON(0);
- if (data0.length > 0) {
+ const data2 = subDockToJSON(1);
+ if (data0.length > 0 || data2.length > 0) {
+ // https://github.com/siyuan-note/siyuan/issues/5641
json.push(data0);
}
- const data2 = subDockToJSON(1);
if (data2.length > 0) {
json.push(data2);
}