Procházet zdrojové kódy

smooth upgrade from Grafana 2.6 to 3.0

utkarshcmu před 10 roky
rodič
revize
a883424d25

+ 1 - 0
public/app/plugins/datasource/opentsdb/datasource.js

@@ -14,6 +14,7 @@ function (angular, _, dateMath) {
     this.name = instanceSettings.name;
     this.withCredentials = instanceSettings.withCredentials;
     this.basicAuth = instanceSettings.basicAuth;
+    instanceSettings.jsonData = instanceSettings.jsonData || {};
     this.tsdbVersion = instanceSettings.jsonData.tsdbVersion || 1;
     this.supportMetrics = true;
     this.tagKeys = {};