We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f1cee commit 0186cfaCopy full SHA for 0186cfa
1 file changed
frontend/layout/lib/layoutModel.ts
@@ -411,6 +411,10 @@ export class LayoutModel {
411
const tab = this.getter(this.tabAtom);
412
const layoutBlockIds = new Set<string>();
413
414
+ if (this.treeState.rootNode == null) {
415
+ return;
416
+ }
417
+
418
walkNodes(this.treeState.rootNode, (node) => {
419
if (node.data?.blockId) {
420
layoutBlockIds.add(node.data.blockId);
0 commit comments