fix for a change in datasource object

This commit is contained in:
Mike Kobyakov 2015-07-10 16:09:08 -07:00
parent 76c18e50a4
commit eb88a53223

View File

@ -173,11 +173,7 @@ function (angular, _, kbn) {
};
OpenTSDBDatasource.prototype.performAggregatorsQuery = function() {
var options = {
method: 'GET',
url: this.url + '/api/aggregators'
};
return $http(options).then(function(result) {
return this._get('/api/aggregators', {}).then(function(result) {
if (result.data instanceof Array) {
return result.data.sort();
} else {