mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 23:37:01 -06:00
returns correct index (#5275)
This commit is contained in:
parent
755ec552de
commit
ced3bafa99
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user