Merge pull request #14123 from grafana/switch-back-from-mixed

fixed issue switching back from mixed data source
This commit is contained in:
Torkel Ödegaard 2018-11-19 14:40:37 +01:00 committed by GitHub
commit c67b55776c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,6 @@ export class MetricsTabCtrl {
return;
}
this.datasourceInstance = option.datasource;
this.setDatasource(option.datasource);
this.updateDatasourceOptions();
}
@ -96,6 +95,7 @@ export class MetricsTabCtrl {
});
}
this.datasourceInstance = datasource;
this.panel.datasource = datasource.value;
this.panel.refresh();
}