Browse Source

returns correct index (#5275)

Mark Baas 9 years ago
parent
commit
ced3bafa99
1 changed files with 1 additions and 4 deletions
  1. 1 4
      public/app/plugins/datasource/opentsdb/datasource.js

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

@@ -403,10 +403,7 @@ function (angular, _, dateMath) {
         } else {
         } else {
           return _.findIndex(options.targets, function(target) {
           return _.findIndex(options.targets, function(target) {
             if (target.filters && target.filters.length > 0) {
             if (target.filters && target.filters.length > 0) {
-              return target.metric === metricData.metric &&
-              _.all(target.filters, function(filter) {
-                return filter.tagk === interpolatedTagValue === "*";
-              });
+              return target.metric === metricData.metric;
             } else {
             } else {
               return target.metric === metricData.metric &&
               return target.metric === metricData.metric &&
               _.all(target.tags, function(tagV, tagK) {
               _.all(target.tags, function(tagV, tagK) {