Commit f4462041 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'fix-18529' into 'master'

Show avatar placeholder in search dropdowns

Closes #18529

See merge request gitlab-org/gitlab!34823
parents 265f9a43 99435487
......@@ -263,7 +263,7 @@ function UsersSelect(currentUser, els, options = {}) {
const userId = parseInt(input.value, 10);
const { avatarUrl, avatar_url, name, username, canMerge } = input.dataset;
return {
avatar_url: avatarUrl || avatar_url,
avatar_url: avatarUrl || avatar_url || gon.default_avatar_url,
id: userId,
name,
username,
......
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