diff --git a/frontend/faraday/lib/TileLayout.tsx b/frontend/faraday/lib/TileLayout.tsx index 3c51efbd0..245bf8631 100644 --- a/frontend/faraday/lib/TileLayout.tsx +++ b/frontend/faraday/lib/TileLayout.tsx @@ -271,14 +271,16 @@ function TileLayoutComponent({ layoutTreeStateAtom, contents, getCursorPoint className="overlay-container" style={{ top: 10000, ...overlayTransform }} > - + {!layoutTreeState?.rootNode ? null : ( + + )} @@ -565,7 +567,7 @@ const OverlayNode = ({ return nodeRefs; }); }; - }, [overlayRef, layoutNode.id]); + }, [overlayRef, layoutNode?.id]); function onPointerOverLeaf(event: React.PointerEvent) { event.stopPropagation();