Skip to content

Commit

Permalink
parseInt gid and uid
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Dec 11, 2024
1 parent 81287c8 commit 2ddda0c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ qx.Class.define("osparc.data.model.User", {
}
const thumbnail = osparc.utils.Avatar.emailToThumbnail(userData["login"]);
this.set({
userId: userData["id"],
groupId: userData["gid"],
userId: parseInt(userData["id"]),
groupId: parseInt(userData["gid"]),
username: userData["username"],
firstName: userData["first_name"],
lastName: userData["last_name"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ qx.Class.define("osparc.store.Groups", {
},

getOrganization: function(groupId) {
groupId = parseInt(groupId);
if (groupId && groupId in this.getOrganizations()) {
return this.getOrganizations()[groupId];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ qx.Class.define("osparc.store.Store", {
check: "Object",
init: {}
},
announcements: {
check: "Array",
init: []
},
maintenance: {
check: "Object",
init: {}
},
currentStudy: {
check: "osparc.data.model.Study",
init: null,
Expand Down Expand Up @@ -111,10 +119,6 @@ qx.Class.define("osparc.store.Store", {
init: [],
event: "changeIterations"
},
maintenance: {
check: "Object",
init: {}
},
templates: {
check: "Array",
init: []
Expand Down

0 comments on commit 2ddda0c

Please sign in to comment.