Skip to content

Commit 2c9a131

Browse files
committed
feat: fixed issue with deleting entirety of clip-path formula and adding commas
1 parent e48761f commit 2c9a131

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/utils/ShapePreview.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ const ShapePreview = (props) => {
5454
const array = [];
5555

5656
for (let i = 0; i < props.shapeInformation.vertices; i++) {
57+
58+
if (props.shapeInformation.verticeCoordinates[i] === undefined) {
59+
return;
60+
}
61+
5762
array.push(
5863
<DraggableVertice
5964
key={1000 + i}

0 commit comments

Comments
 (0)