fix: don't detect graphite version before it's saved
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user