Commit af9b2096 authored by Tristan Read's avatar Tristan Read Committed by Kushal Pandya

Reduce query timespan to one day in schedule daily view

parent f95046ba
......@@ -69,7 +69,10 @@ export default {
variables() {
this.timeframeStartDate.setHours(0, 0, 0, 0);
const startsAt = this.timeframeStartDate;
const endsAt = nWeeksAfter(startsAt, 2);
const endsAt =
this.presetType === this.$options.PRESET_TYPES.WEEKS
? nWeeksAfter(startsAt, 2)
: nDaysAfter(startsAt, 1);
return {
projectPath: this.projectPath,
......
---
title: Reduce query timespan to one day in schedule daily view
merge_request: 58974
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment