We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4491c94 commit 76c86c9Copy full SHA for 76c86c9
1 file changed
components/core/CreateShape.js
@@ -73,7 +73,7 @@ const CreateShape = (props) => {
73
74
});
75
} else if (name === "formula") {
76
- const edgeVerticeNumber = shapeInformation.clipPathType === "polygon" ? value.split(",").length: 0;
+ const edgeVerticeNumber = shapeInformation.clipPathType === "polygon" && value !== "" ? value.split(",").length: 0;
77
78
// If user deletes all, set formula to the Clip-Path type with an empty set of parentheses
79
if (value === "") {
0 commit comments