Przeglądaj źródła

fix for a change in datasource object

Mike Kobyakov 10 lat temu
rodzic
commit
eb88a53223

+ 1 - 5
public/app/plugins/datasource/opentsdb/datasource.js

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