fix: Data source group by time interval did not take effect on initial query after dashboard load, fixes #7839

This commit is contained in:
Torkel Ödegaard 2017-03-16 09:54:33 +01:00
parent 0b73369c4b
commit 32f89f65da

View File

@ -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([]);