AI-native design editor. Open-source Figma alternative.
Guard against null Yoga children in layout application
Danila Poyarkov989378f444f5
diff --git a/packages/core/src/layout.ts b/packages/core/src/layout.tsindex 616cca2b3..5024a6593 100644--- a/packages/core/src/layout.ts+++ b/packages/core/src/layout.ts@@ -252,6 +252,7 @@ function applyYogaLayout(graph: SceneGraph, frame: SceneNode, yogaNode: YogaNodeconst yogaChild = yogaNode.getChild(yogaIndex)yogaIndex+++ if (!yogaChild) continuegraph.updateNode(child.id, {x: yogaChild.getComputedLeft(),