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:
@@ -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