Browse Source

TypeError: Cannot read property 'isUp' of undefined #398 (#416)

master
Alexander Velikiy 5 years ago committed by GitHub
parent
commit
6298d3d7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      src/panel/graph_panel/graph_ctrl.ts

18
src/panel/graph_panel/graph_ctrl.ts

@ -338,11 +338,21 @@ class GraphCtrl extends MetricsPanelCtrl {
this._analyticUnitsToShow this._analyticUnitsToShow
); );
if(this.analyticService.isUp) { if(this.analyticService === undefined) {
await this.analyticsController.init(); appEvents.emit(
'alert-error',
[
'Select Hastic datasource',
'Panel config -> Visualization'
]
);
} else {
if(this.analyticService.isUp) {
await this.analyticsController.init();
this._updatePanelInfo(); this._updatePanelInfo();
this.analyticsController.updateServerInfo(); this.analyticsController.updateServerInfo();
}
} }
this._graphRenderer = new GraphRenderer( this._graphRenderer = new GraphRenderer(

Loading…
Cancel
Save