Dashboard: Refresh intervals should not always add the server min refresh interval (#26150)

(cherry picked from commit 8ab5d2ddd9)
This commit is contained in:
Torkel Ödegaard
2020-07-13 14:41:21 +02:00
committed by Andrej Ocenas
parent eedf6e53de
commit b8c5174461
@@ -79,12 +79,7 @@ export class TimeSrv {
return intervals;
}
const validIntervals = intervals.filter(str => str !== '').filter(this.contextSrv.isAllowedInterval);
if (validIntervals.indexOf(this.contextSrv.minRefreshInterval) === -1) {
validIntervals.unshift(this.contextSrv.minRefreshInterval);
}
return validIntervals;
return intervals.filter(str => str !== '').filter(this.contextSrv.isAllowedInterval);
}
private parseTime() {