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 isEqualRect
Roman Pominovd4d2d6818160
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsx b/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsxindex 47d4aca4f5..0d8dc7ac6f 100644--- a/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsx+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsx@@ -52,11 +52,11 @@ const getClosestRectIndex = (rects: Rect[], point: Coordinates) => {const isEqualRect = (a: Rect | undefined, b: Rect) => {return (- a === undefined ||- (a.top === b.top &&- a.left === b.left &&- a.width === b.width &&- a.height === b.height)+ a !== undefined &&+ a.top === b.top &&+ a.left === b.left &&+ a.width === b.width &&+ a.height === b.height);};