|
@@ -41,6 +41,7 @@ class MetricsPanelCtrl extends PanelCtrl {
|
|
|
this.timeSrv = $injector.get('timeSrv');
|
|
this.timeSrv = $injector.get('timeSrv');
|
|
|
this.templateSrv = $injector.get('templateSrv');
|
|
this.templateSrv = $injector.get('templateSrv');
|
|
|
this.scope = $scope;
|
|
this.scope = $scope;
|
|
|
|
|
+ this.panel.datasource = this.panel.datasource || null;
|
|
|
|
|
|
|
|
if (!this.panel.targets) {
|
|
if (!this.panel.targets) {
|
|
|
this.panel.targets = [{}];
|
|
this.panel.targets = [{}];
|