Skip to content

Commit 9ce35fe

Browse files
committed
no need to coerce shape.path twice
1 parent b2df371 commit 9ce35fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/shapes/defaults.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ function handleShapeDefaults(shapeIn, shapeOut, fullLayout) {
112112
}
113113
}
114114

115-
if(shapeType === 'path') {
116-
coerce('path');
117-
} else {
115+
if(shapeType !== 'path') {
118116
Lib.noneOrAll(shapeIn, shapeOut, ['x0', 'x1', 'y0', 'y1']);
119117
}
120118
}

0 commit comments

Comments
 (0)