Skip to content

Commit d2fa858

Browse files
committed
fix: don't get previous day for the 'Daily Timeline (Chronological)' visualization
1 parent 9c84f22 commit d2fa858

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/SelectableVisualization.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ export default {
283283
date = this.activityStore.query_options.timeperiod.start;
284284
}
285285
286-
// Get events data from CurrentData ± 1 Day so that there is some continuity
287-
return [moment(date).subtract(1, 'day'), moment(date).add(1, 'day')];
286+
return [moment(date), moment(date).add(1, 'day')];
288287
},
289288
isSingleDay: function () {
290289
return _.isEqual(this.activityStore.query_options.timeperiod.length, [1, 'day']);

0 commit comments

Comments
 (0)