Bladeren bron

fix(graphite): jsonData is not always present.

bergquist 8 jaren geleden
bovenliggende
commit
ce6050f5d6
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      public/app/plugins/datasource/graphite/config_ctrl.ts

+ 1 - 0
public/app/plugins/datasource/graphite/config_ctrl.ts

@@ -9,6 +9,7 @@ export class GraphiteConfigCtrl {
 
   /** @ngInject */
   constructor($scope) {
+    this.current.jsonData = this.current.jsonData || {};
     this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
   }