fix(graphite): jsonData is not always present.

This commit is contained in:
bergquist 2017-09-04 10:28:48 +02:00
parent 40c008f870
commit ce6050f5d6

View File

@ -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';
}