فهرست منبع

fix(graphite): jsonData is not always present.

bergquist 8 سال پیش
والد
کامیت
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 */
   /** @ngInject */
   constructor($scope) {
   constructor($scope) {
+    this.current.jsonData = this.current.jsonData || {};
     this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
     this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
   }
   }