mirror of
https://github.com/status-im/codimd.git
synced 2025-02-09 19:04:37 +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) {
|
if (lastchangeuser && lastchangeuserprofile) {
|
||||||
var icon = lastchangeui.user.children('i');
|
var icon = lastchangeui.user.children('i');
|
||||||
icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
|
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.user.show();
|
||||||
lastchangeui.nouser.hide();
|
lastchangeui.nouser.hide();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user