mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
deduplicate tag value suggestions for OpenTSDB
This commit is contained in:
parent
1f959272c5
commit
62ae80eeae
@ -97,7 +97,9 @@ function (angular, _, kbn) {
|
||||
result = result.data.results;
|
||||
var tagvs = [];
|
||||
_.each(result, function(r) {
|
||||
tagvs.push(r.tags[key]);
|
||||
if (tagvs.indexOf(r.tags[key]) === -1) {
|
||||
tagvs.push(r.tags[key]);
|
||||
}
|
||||
});
|
||||
return tagvs;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user