Commit 8ab5d2dd by Torkel Ödegaard Committed by GitHub

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

parent 17d87071
......@@ -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() {
......
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