File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
services/static-webserver/client/source/class/osparc/info Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments