Skip to content

Commit

Permalink
🎨 #9866
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 17, 2023
1 parent 3cf0e14 commit a80c043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/layout/util.ts
Expand Up @@ -339,7 +339,7 @@ export const JSONToCenter = (app: App, json: ILayoutJSON, layout?: Layout | Wnd
child.headElement.querySelector(".item__text").classList.add("fn__none");
}
}
if (json.active) {
if (json.active && child.headElement) {
child.headElement.setAttribute("data-init-active", "true");
}
(layout as Wnd).addTab(child, false, false);
Expand Down

0 comments on commit a80c043

Please sign in to comment.