Skip to content

Commit 9024f24

Browse files
committed
feat: fixed issue where DraggableVertices do not reset when switching back from circle/ellipse to polygon
1 parent f48c2c2 commit 9024f24

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

components/core/CreateShape.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ const CreateShape = (props) => {
9696

9797
if (value === "polygon") {
9898
setShapeInformation({
99-
...shapeInformation,
100-
"name": "Tilted Square",
101-
"type": "tiltedSquare",
102-
"formula": "polygon(10% 10%, 90% 10%, 90% 90%, 10% 80%)",
99+
...initialState,
103100
});
104101
}
105102

0 commit comments

Comments
 (0)