Commit 32f89f65 by Torkel Ödegaard

fix: Data source group by time interval did not take effect on initial query…

fix: Data source group by time interval did not take effect on initial query after dashboard load, fixes #7839
parent 0b73369c
......@@ -90,8 +90,6 @@ class MetricsPanelCtrl extends PanelCtrl {
delete this.error;
this.loading = true;
this.updateTimeRange();
// load datasource service
this.setTimeQueryStart();
this.datasourceSrv.get(this.panel.datasource)
......@@ -196,6 +194,7 @@ class MetricsPanelCtrl extends PanelCtrl {
issueQueries(datasource) {
this.datasource = datasource;
this.updateTimeRange();
if (!this.panel.targets || this.panel.targets.length === 0) {
return this.$q.when([]);
......
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