浏览代码

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 */
   constructor($scope) {
+    this.current.jsonData = this.current.jsonData || {};
     this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
   }