mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: don't detect graphite version before it's saved
This commit is contained in:
parent
cfd755eb93
commit
de91d68402
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user