Skip to content

Commit 5b965ab

Browse files
committed
Shapes: fix drag of shapes linked to timestamps
1 parent e8b587c commit 5b965ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/shapes/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,10 @@ function isShapeInSubplot(gd, shape, plotinfo) {
528528
}
529529

530530
function decodeDate(convertToPx) {
531-
return function(v) { return convertToPx(v.replace('_', ' ')); };
531+
return function(v) {
532+
if(v.replace) v = v.replace('_', ' ');
533+
return convertToPx(v);
534+
};
532535
}
533536

534537
function encodeDate(convertToDate) {

0 commit comments

Comments
 (0)