Skip to content

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

:bug: open new window

Vanessa0b001595115b
diff --git a/app/src/window/openNewWindow.ts b/app/src/window/openNewWindow.ts
index 0e07e36787..fe8071260f 100644
--- a/app/src/window/openNewWindow.ts
+++ b/app/src/window/openNewWindow.ts
@@ -43,7 +43,9 @@ export const openNewWindowById = (id: string) => {
};
if (response.data.rootID === id) {
fetchPost("/api/attr/getBlockAttrs", {id}, (attrResponse) => {
- json.children.scrollAttr = JSON.parse(attrResponse.data.scroll || "{}");
+ if (attrResponse.data.scroll) {
+ json.children.scrollAttr = JSON.parse(attrResponse.data.scroll);
+ }
/// #if !BROWSER
ipcRenderer.send(Constants.SIYUAN_OPENWINDOW, {
id: getCurrentWindow().id,