Просмотр исходного кода

fix(graphite): jsonData is not always present.

bergquist 8 лет назад
Родитель
Сommit
ce6050f5d6
1 измененных файлов с 1 добавлено и 0 удалено
  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';
   }