@@ -1,5 +1,3 @@
-///<reference path="../../headers/common.d.ts" />
-
import _ from 'lodash';
import config from 'app/core/config';
@@ -15,6 +15,10 @@ export class GraphiteConfigCtrl {
}
autoDetectGraphiteVersion() {
+ if (!this.current.id) {
+ return;
+ }
+
this.datasourceSrv.loadDatasource(this.current.name)
.then((ds) => {
return ds.getVersion();