mirror of
https://github.com/wekan/wekan.git
synced 2026-01-27 19:56:09 +01:00
Fix missing profile checks
This commit is contained in:
parent
97ff2bd2fa
commit
daf314b037
12 changed files with 39 additions and 35 deletions
|
|
@ -172,7 +172,7 @@ export class Exporter {
|
|||
};
|
||||
result.users = Users.find(byUserIds, userFields).fetch().map((user) => {
|
||||
// user avatar is stored as a relative url, we export absolute
|
||||
if (user.profile.avatarUrl) {
|
||||
if ((user.profile || {}).avatarUrl) {
|
||||
user.profile.avatarUrl = FlowRouter.url(user.profile.avatarUrl);
|
||||
}
|
||||
return user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue