Fixed show dummy icon if no one exists.
This commit is contained in:
parent
c986be287b
commit
acbf1fe24a
1 changed files with 2 additions and 2 deletions
|
@ -601,8 +601,8 @@ class App.Controller extends Spine.Controller
|
||||||
# users
|
# users
|
||||||
if params.type == 'User'
|
if params.type == 'User'
|
||||||
for user of params.data
|
for user of params.data
|
||||||
if user && !user.image
|
if params.data[user] && !params.data[user]['image']
|
||||||
user.image = 'http://placehold.it/48x48'
|
params.data[user]['image'] = 'http://placehold.it/48x48'
|
||||||
App.User.refresh( params.data[user], options: { clear: true } )
|
App.User.refresh( params.data[user], options: { clear: true } )
|
||||||
|
|
||||||
# tickets
|
# tickets
|
||||||
|
|
Loading…
Reference in a new issue