Skip to content

Commit 31fdced

Browse files
committed
minor
1 parent b77e673 commit 31fdced

File tree

1 file changed

+9
-3
lines changed
  • services/static-webserver/client/source/class/osparc/user

1 file changed

+9
-3
lines changed

services/static-webserver/client/source/class/osparc/user/UserDetails.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,15 @@ qx.Class.define("osparc.user.UserDetails", {
164164
}
165165
};
166166
osparc.data.Resources.fetch("poUsers", "searchByGroupId", params)
167-
.then(userData => {
168-
if (userData.length === 1) {
169-
console.log(userData[0]);
167+
.then(usersData => {
168+
if (usersData.length === 1) {
169+
const userData = usersData[0];
170+
// curate data
171+
userData["groupId"] = userGroupId;
172+
userData["userId"] = -1; // fix this
173+
userData["userName"] = "userName"; // fix this
174+
const user = new osparc.data.model.User(userData);
175+
this.setUser(user);
170176
}
171177
})
172178
.catch(err => {

0 commit comments

Comments
 (0)