This commit is contained in:
Vanessa 2024-10-17 11:07:14 +08:00 committed by Daniel
parent 054263d8e9
commit bee64b86fd
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -559,7 +559,7 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any, brea
}
}
json.instance = "Tab";
json.activeTime = layout.headElement.getAttribute("data-activetime");
json.activeTime = layout.headElement?.getAttribute("data-activetime");
} else if (layout instanceof Editor) {
if (!layout.editor.protyle.notebookId && breakObj) {
breakObj.editor = "true";