diff --git a/services/static-webserver/client/source/class/osparc/store/Groups.js b/services/static-webserver/client/source/class/osparc/store/Groups.js index e8fff566d02..3314d2a528f 100644 --- a/services/static-webserver/client/source/class/osparc/store/Groups.js +++ b/services/static-webserver/client/source/class/osparc/store/Groups.js @@ -159,7 +159,8 @@ qx.Class.define("osparc.store.Groups", { this.__addMemberToCache(orgMember, groupId); }); } - }); + }) + .catch(err => osparc.FlashMessenger.logError(err)); }, fetchGroupsAndMembers: function() { diff --git a/services/static-webserver/client/source/class/osparc/store/Users.js b/services/static-webserver/client/source/class/osparc/store/Users.js index 2b0ecfbe33c..5ffbcce899e 100644 --- a/services/static-webserver/client/source/class/osparc/store/Users.js +++ b/services/static-webserver/client/source/class/osparc/store/Users.js @@ -36,10 +36,10 @@ qx.Class.define("osparc.store.Users", { members: { __unknowns: null, - __fetchUser: function(groupId) { + __fetchUser: function(userGroupId) { const params = { url: { - gid: groupId + gid: userGroupId } }; return osparc.data.Resources.fetch("users", "get", params) @@ -48,22 +48,22 @@ qx.Class.define("osparc.store.Users", { return user; }) .catch(() => { - this.__unknowns.push(groupId); + this.__unknowns.push(userGroupId); return null; }); }, - getUser: async function(groupId, fetchIfNotFound = true) { - if (this.__unknowns.includes(groupId)) { + getUser: async function(userGroupId, fetchIfNotFound = true) { + if (this.__unknowns.includes(userGroupId)) { return null; } - const userFound = this.getUsers().find(user => user.getGroupId() === groupId); + const userFound = this.getUsers().find(user => user.getGroupId() === userGroupId); if (userFound) { return userFound; } if (fetchIfNotFound) { try { - const user = await this.__fetchUser(groupId); + const user = await this.__fetchUser(userGroupId); if (user) { return user; }