Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix flicker on nodes without children

Roman Pominov6733aa7b8471
diff --git a/apps/designer/app/designer/shared/tree/tree.tsx b/apps/designer/app/designer/shared/tree/tree.tsx
index e210af4a64..dbe2cfaa06 100644
--- a/apps/designer/app/designer/shared/tree/tree.tsx
+++ b/apps/designer/app/designer/shared/tree/tree.tsx
@@ -127,7 +127,7 @@ export const Tree = ({
<Text>{label}</Text>
</Button>
</Flex>
- <CollapsibleContent>{children}</CollapsibleContent>
+ {children != null && <CollapsibleContent>{children}</CollapsibleContent>}
</Collapsible.Root>
);
};