Skip to content

Commit 349c7a9

Browse files
Fixed timescale mismatch
1 parent 2dec0c3 commit 349c7a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/js/containers/timeline/timeline.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,10 @@ class Timeline extends React.Component {
619619
} = this.props;
620620

621621
let delta = customSelected && deltaChangeAmt ? deltaChangeAmt : 1;
622+
let timescale = timeScaleChangeUnit;
622623
if (autoSelected && subDailyLayersList && subDailyLayersList.length) {
623624
delta = getNextImageryDelta(subDailyLayersList, dateA, signConstant);
625+
timescale = 'minute';
624626
}
625627
if (!timeScaleChangeUnit) { // undefined custom will not allow arrow change
626628
return;
@@ -632,7 +634,7 @@ class Timeline extends React.Component {
632634
const maxDate = new Date(timelineEndDateLimit);
633635
this.onDateChange(getNextTimeSelection(
634636
delta,
635-
timeScaleChangeUnit,
637+
timescale,
636638
selectedDate,
637639
minDate,
638640
maxDate,

0 commit comments

Comments
 (0)