diff --git a/services/static-webserver/client/source/class/osparc/data/model/User.js b/services/static-webserver/client/source/class/osparc/data/model/User.js index a8af0ddca72..59d99ce7b25 100644 --- a/services/static-webserver/client/source/class/osparc/data/model/User.js +++ b/services/static-webserver/client/source/class/osparc/data/model/User.js @@ -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"], 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 fa5ec549fa4..21e2d4b2a29 100644 --- a/services/static-webserver/client/source/class/osparc/store/Groups.js +++ b/services/static-webserver/client/source/class/osparc/store/Groups.js @@ -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]; } diff --git a/services/static-webserver/client/source/class/osparc/store/Store.js b/services/static-webserver/client/source/class/osparc/store/Store.js index e560a643980..6b986a0a34d 100644 --- a/services/static-webserver/client/source/class/osparc/store/Store.js +++ b/services/static-webserver/client/source/class/osparc/store/Store.js @@ -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, @@ -111,10 +119,6 @@ qx.Class.define("osparc.store.Store", { init: [], event: "changeIterations" }, - maintenance: { - check: "Object", - init: {} - }, templates: { check: "Array", init: []