Skip to content

Commit ced3baf

Browse files
markbaastorkelo
authored andcommitted
returns correct index (grafana#5275)
1 parent 755ec55 commit ced3baf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

public/app/plugins/datasource/opentsdb/datasource.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,7 @@ function (angular, _, dateMath) {
403403
} else {
404404
return _.findIndex(options.targets, function(target) {
405405
if (target.filters && target.filters.length > 0) {
406-
return target.metric === metricData.metric &&
407-
_.all(target.filters, function(filter) {
408-
return filter.tagk === interpolatedTagValue === "*";
409-
});
406+
return target.metric === metricData.metric;
410407
} else {
411408
return target.metric === metricData.metric &&
412409
_.all(target.tags, function(tagV, tagK) {

0 commit comments

Comments
 (0)