Skip to content

Commit 40c8abc

Browse files
committed
don't try to cleanDate coming from autorange
1 parent b643238 commit 40c8abc

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/plots/cartesian/set_convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ module.exports = function setConvert(ax, fullLayout) {
403403
return;
404404
}
405405

406-
if(ax.type === 'date') {
406+
if(ax.type === 'date' && !ax.autorange) {
407407
// check if milliseconds or js date objects are provided for range
408408
// and convert to date strings
409409
range[0] = Lib.cleanDate(range[0], BADNUM, ax.calendar);

test/jasmine/tests/transform_filter_test.js

-5
Original file line numberDiff line numberDiff line change
@@ -1349,11 +1349,6 @@ describe('filter resulting in empty coordinate arrays', function() {
13491349
var mockList = require('../assets/mock_lists').svg;
13501350

13511351
mockList.forEach(function(d) {
1352-
if(d[0] === 'world-cals') {
1353-
// world-cals mock complains during a Lib.cleanDate()
1354-
return;
1355-
}
1356-
13571352
it(d[0], function(done) {
13581353
gd = createGraphDiv();
13591354
var fig = filter2empty(d[1]);

0 commit comments

Comments
 (0)