Commit 99435487 authored by Moritz Schlarb's avatar Moritz Schlarb

Show avatar placeholder in search dropdowns

    
Fixes #18529
parent 6b34cb89
...@@ -263,7 +263,7 @@ function UsersSelect(currentUser, els, options = {}) { ...@@ -263,7 +263,7 @@ function UsersSelect(currentUser, els, options = {}) {
const userId = parseInt(input.value, 10); const userId = parseInt(input.value, 10);
const { avatarUrl, avatar_url, name, username, canMerge } = input.dataset; const { avatarUrl, avatar_url, name, username, canMerge } = input.dataset;
return { return {
avatar_url: avatarUrl || avatar_url, avatar_url: avatarUrl || avatar_url || gon.default_avatar_url,
id: userId, id: userId,
name, name,
username, 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