mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix issue with metric find & functions being loaded multiple times
This commit is contained in:
@@ -429,7 +429,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
||||
url: '/functions',
|
||||
};
|
||||
|
||||
return self
|
||||
self.funcDefs = self
|
||||
.doGraphiteRequest(httpOptions)
|
||||
.then(results => {
|
||||
if (results.status !== 200 || typeof results.data !== 'object') {
|
||||
@@ -530,6 +530,8 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
||||
self.funcDefs = gfunc.getFuncDefs(self.graphiteVersion);
|
||||
return self.funcDefs;
|
||||
});
|
||||
|
||||
return self.funcDefs;
|
||||
};
|
||||
|
||||
this.testDatasource = function() {
|
||||
|
||||
Reference in New Issue
Block a user