diff options
author | Dennis Tang <dennis@dennistang.net> | 2018-07-12 06:39:09 +0000 |
---|---|---|
committer | Dennis Tang <dennis@dennistang.net> | 2018-07-12 06:39:09 +0000 |
commit | b381d75ea2f0213b30b0aff3e48b4f61b0610884 (patch) | |
tree | 8638ed77d4ee2e91c0641bd3c910474acad5ec7b | |
parent | 8bd4c13eb81c1364c0b8e228ade96ed2b1f05ca0 (diff) | |
download | gitlab-ce-36409-frontend-for-clarifying-the-usefulness-of-the-search-bar.tar.gz |
Update search_helper.rb36409-frontend-for-clarifying-the-usefulness-of-the-search-bar
-rw-r--r-- | app/helpers/search_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index cd3675d48ec..328be3b7280 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -106,7 +106,7 @@ module SearchHelper id: group.id, label: "#{search_result_sanitize(group.full_name)}", url: group_path(group), - avatarUrl: group.try(:avatar_url) || ActionController::Base.helpers.image_path('no_group_avatar.png') + avatarUrl: group.avatar_url || '' } end end @@ -121,7 +121,7 @@ module SearchHelper value: "#{search_result_sanitize(p.name)}", label: "#{search_result_sanitize(p.full_name)}", url: project_path(p), - avatarUrl: p.try(:avatar_url) || '' + avatarUrl: p.avatar_url || '' } end end |