Skip to content

Commit 90be6d4

Browse files
committed
getUser for thumbnail
1 parent 30dd95e commit 90be6d4

File tree

1 file changed

+7
-5
lines changed
  • services/static-webserver/client/source/class/osparc/info

1 file changed

+7
-5
lines changed

services/static-webserver/client/source/class/osparc/info/CommentUI.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ qx.Class.define("osparc.info.CommentUI", {
126126
const commentContent = this.getChildControl("comment-content");
127127
commentContent.setValue(this.__comment["content"]);
128128

129-
const user = osparc.store.Groups.getInstance().getUserByGroupId(this.__comment["userGroupId"])
130-
if (user) {
131-
thumbnail.setSource(user.getThumbnail());
132-
userName.setValue(user.getLabel());
133-
}
129+
osparc.store.Users.getInstance().getUser(this.__comment["userGroupId"])
130+
.then(user => {
131+
if (user) {
132+
thumbnail.setSource(user.getThumbnail());
133+
userName.setValue(user.getLabel());
134+
}
135+
});
134136

135137
this.getChildControl("spacer");
136138
}

0 commit comments

Comments
 (0)