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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix tree preview
Roman Pominov52c69afd8303
diff --git a/apps/designer/app/designer/features/tree-preview/tree-preview.tsx b/apps/designer/app/designer/features/tree-preview/tree-preview.tsxindex 5e0e18281c..936a067fbb 100644--- a/apps/designer/app/designer/features/tree-preview/tree-preview.tsx+++ b/apps/designer/app/designer/features/tree-preview/tree-preview.tsx@@ -66,7 +66,7 @@ export const TreePrevew = () => {return (treeProps && (<Flex gap="3" direction="column" css={{ padding: "$1" }}>- {/* <Tree {...treeProps} animate={false} /> */}+ <Tree {...treeProps} animate={false} /></Flex>));diff --git a/apps/designer/app/designer/shared/tree/tree.tsx b/apps/designer/app/designer/shared/tree/tree.tsxindex 6db8031945..3bfa44c699 100644--- a/apps/designer/app/designer/shared/tree/tree.tsx+++ b/apps/designer/app/designer/shared/tree/tree.tsx@@ -1,6 +1,6 @@import { BaseTree, TreeProps, useExpandState } from "./base-tree";export const Tree = (props: TreeProps) => {- const expandState = useExpandState();+ const expandState = useExpandState(props);return <BaseTree {...props} {...expandState} />;};