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 a bug

Roman Pominov057b616cdbc5
diff --git a/apps/designer/app/designer/shared/tree/tree.tsx b/apps/designer/app/designer/shared/tree/tree.tsx
index a79918140b..4ff214f6bf 100644
--- a/apps/designer/app/designer/shared/tree/tree.tsx
+++ b/apps/designer/app/designer/shared/tree/tree.tsx
@@ -141,6 +141,10 @@ export const Tree = ({
currentDepth - desiredDepth
);
+ if (difference === 0) {
+ return withoutShift;
+ }
+
// Ideally we should check canAcceptChildren on the new target
// but we assume that because it already has a child, it can accept more.