BigW Consortium Gitlab

Remove duplicate items from search autocomplete

Old behaviour gave you duplicate entries if your project is public Signed-off-by: 's avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c0f6a932
......@@ -8,7 +8,9 @@ module SearchHelper
default_autocomplete,
project_autocomplete,
help_autocomplete
].flatten.to_json
].flatten.uniq do |item|
item[:label]
end.to_json
end
private
......
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