mirror of
https://github.com/wekan/wekan.git
synced 2026-01-01 15:18:49 +01:00
fix error on console when user logout (Part 1)
This commit is contained in:
parent
b0c94f7ff2
commit
38a32824ea
2 changed files with 10 additions and 16 deletions
|
|
@ -687,14 +687,11 @@ Users.helpers({
|
|||
return '';
|
||||
},
|
||||
orgIdsUserBelongs() {
|
||||
let ret = '';
|
||||
if (this.orgs) {
|
||||
return this.orgs
|
||||
.map(function (org) {
|
||||
return org.orgId;
|
||||
})
|
||||
.join(',');
|
||||
ret = this.orgs.map(org => org.orgId).join(',');
|
||||
}
|
||||
return '';
|
||||
return ret;
|
||||
},
|
||||
teamsUserBelongs() {
|
||||
if (this.teams) {
|
||||
|
|
@ -708,14 +705,11 @@ Users.helpers({
|
|||
return '';
|
||||
},
|
||||
teamIdsUserBelongs() {
|
||||
let ret = '';
|
||||
if (this.teams) {
|
||||
return this.teams
|
||||
.map(function (team) {
|
||||
return team.teamId;
|
||||
})
|
||||
.join(',');
|
||||
ret = this.teams.map(team => team.teamId).join(',');
|
||||
}
|
||||
return '';
|
||||
return ret;
|
||||
},
|
||||
boards() {
|
||||
return Boards.userBoards(this._id, null, {}, { sort: { sort: 1 } });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue