Commit ced3bafa by Mark Baas Committed by Torkel Ödegaard

returns correct index (#5275)

parent 755ec552
...@@ -403,10 +403,7 @@ function (angular, _, dateMath) { ...@@ -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 && return target.metric === metricData.metric;
_.all(target.filters, function(filter) {
return filter.tagk === interpolatedTagValue === "*";
});
} else { } else {
return target.metric === metricData.metric && return target.metric === metricData.metric &&
_.all(target.tags, function(tagV, tagK) { _.all(target.tags, function(tagV, tagK) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment