returns correct index (#5275)

This commit is contained in:
Mark Baas 2016-06-09 02:13:31 -04:00 committed by Torkel Ödegaard
parent 755ec552de
commit ced3bafa99

View File

@ -403,10 +403,7 @@ function (angular, _, dateMath) {
} else {
return _.findIndex(options.targets, function(target) {
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 {
return target.metric === metricData.metric &&
_.all(target.tags, function(tagV, tagK) {