Commit 8e7a1277 by godfreyhe

fix bug: can't get the aggregators from opentsdb server

parent 30f3b55b
......@@ -38,8 +38,9 @@ export class OpenTsQueryCtrl extends QueryCtrl {
this.target.downsampleFillPolicy = 'none';
}
var self = this;
this.datasource.getAggregators().then(function(aggs) {
this.aggregators = aggs;
self.aggregators = aggs;
});
// needs to be defined here as it is called from typeahead
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment