|
@@ -15,6 +15,10 @@ export class GraphiteConfigCtrl {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
autoDetectGraphiteVersion() {
|
|
autoDetectGraphiteVersion() {
|
|
|
|
|
+ if (!this.current.id) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.datasourceSrv.loadDatasource(this.current.name)
|
|
this.datasourceSrv.loadDatasource(this.current.name)
|
|
|
.then((ds) => {
|
|
.then((ds) => {
|
|
|
return ds.getVersion();
|
|
return ds.getVersion();
|