diff --git a/apps/designer/app/designer/features/style-panel/style-section.tsx b/apps/designer/app/designer/features/style-panel/style-section.tsx index b6bd3dbf8e..2a72ef315b 100644 --- a/apps/designer/app/designer/features/style-panel/style-section.tsx +++ b/apps/designer/app/designer/features/style-panel/style-section.tsx @@ -339,24 +339,10 @@ const GridControl = ({ currentStyle: Style; setProperty: SetProperty; }) => { - const direction = (currentStyle.flexDirection?.value as string).includes( - "column" - ); - const orientation = (currentStyle.flexDirection?.value as string).includes( - "reverse" - ); + const flexDirection = currentStyle.flexDirection?.value as string; + const direction = Number(flexDirection.includes("column")); + const orientation = Number(flexDirection.includes("reverse")); const cells = ["a1", "a2", "a3", "b1", "b2", "b3", "c1", "c2", "c3"]; - const align = [ - "start", - "center", - "end", - "start", - "center", - "end", - "start", - "center", - "end", - ]; const [position, setPosition] = useState(0); return ( {["60%", "100%", "60%"].map((value, index) => (