Skip to content
Snippets Groups Projects
Verified Commit 954dd398 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Remove duplicate items from search autocomplete


Old behaviour gave you duplicate entries if your project is public

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c0f6a932
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment