Skip to content

Commit 2ddda0c

Browse files
committed
parseInt gid and uid
1 parent 81287c8 commit 2ddda0c

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

services/static-webserver/client/source/class/osparc/data/model/User.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ qx.Class.define("osparc.data.model.User", {
4545
}
4646
const thumbnail = osparc.utils.Avatar.emailToThumbnail(userData["login"]);
4747
this.set({
48-
userId: userData["id"],
49-
groupId: userData["gid"],
48+
userId: parseInt(userData["id"]),
49+
groupId: parseInt(userData["gid"]),
5050
username: userData["username"],
5151
firstName: userData["first_name"],
5252
lastName: userData["last_name"],

services/static-webserver/client/source/class/osparc/store/Groups.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ qx.Class.define("osparc.store.Groups", {
231231
},
232232

233233
getOrganization: function(groupId) {
234+
groupId = parseInt(groupId);
234235
if (groupId && groupId in this.getOrganizations()) {
235236
return this.getOrganizations()[groupId];
236237
}

services/static-webserver/client/source/class/osparc/store/Store.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ qx.Class.define("osparc.store.Store", {
5555
check: "Object",
5656
init: {}
5757
},
58+
announcements: {
59+
check: "Array",
60+
init: []
61+
},
62+
maintenance: {
63+
check: "Object",
64+
init: {}
65+
},
5866
currentStudy: {
5967
check: "osparc.data.model.Study",
6068
init: null,
@@ -111,10 +119,6 @@ qx.Class.define("osparc.store.Store", {
111119
init: [],
112120
event: "changeIterations"
113121
},
114-
maintenance: {
115-
check: "Object",
116-
init: {}
117-
},
118122
templates: {
119123
check: "Array",
120124
init: []

0 commit comments

Comments
 (0)