Commit 62ae80ee by Liu Yubao

deduplicate tag value suggestions for OpenTSDB

parent 1f959272
......@@ -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;
});
......
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