🐛 open new window

This commit is contained in:
Vanessa 2023-05-14 11:50:41 +08:00
parent 6c3c8d44ad
commit 0b00159511

View file

@ -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,