Browse Source

Error: can't read property 'type' of undefined #353 (#367)

master
rozetko 6 years ago committed by GitHub
parent
commit
8254b59459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/panel/graph_panel/graph_ctrl.ts

3
src/panel/graph_panel/graph_ctrl.ts

@ -762,6 +762,9 @@ class GraphCtrl extends MetricsPanelCtrl {
}
private async _getDatasourceRequest() {
if(this._datasourceRequest === undefined) {
throw new Error('Datasource is not set. If it`s Grafana test-datasource - it`s not supported');
}
if(this._datasourceRequest.type === undefined) {
const datasource = await this._getDatasourceByName(this.panel.datasource);
if(datasource.access !== 'proxy') {

Loading…
Cancel
Save