Skip to content

Commit 4b68e84

Browse files
committed
feat: fixed issue where copy and pasting clip-path without spaces does not render the DraggableVertices
1 parent 6a8ddfa commit 4b68e84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/core/CreateShape.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const CreateShape = (props) => {
261261
return {
262262
...prevState,
263263
"formula": formula.includes("(") && formula.includes(")") ? formula : prevState.formula,
264-
"clipPathType": clipPathType === null ? prevState.clipPathType : clipPathType,
264+
"clipPathType": clipPathType === undefined ? prevState.clipPathType : clipPathType,
265265
"vertices": edgeVerticeNumber,
266266
"edges": edgeVerticeNumber,
267267
"verticeCoordinates": newVerticeCoordinates,

0 commit comments

Comments
 (0)