mirror of
https://github.com/status-im/codimd.git
synced 2025-02-04 06:33:48 +00:00
Fix to handle if last change user profile photo is null
This commit is contained in:
parent
c8560ec5fb
commit
5bb4423309
@ -30,7 +30,8 @@ function updateLastChangeUser() {
|
||||
if (lastchangeuser && lastchangeuserprofile) {
|
||||
var icon = lastchangeui.user.children('i');
|
||||
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
|
||||
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
|
||||
if (lastchangeuserprofile.photo)
|
||||
icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
|
||||
lastchangeui.user.show();
|
||||
lastchangeui.nouser.hide();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user