File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,11 @@ qx.Class.define("osparc.study.Conversations", {
252252 conversationsLayout . getChildControl ( "bar" ) . add ( newConversationButton ) ;
253253 }
254254 // remove and add to move to last position
255- conversationsLayout . getChildControl ( "bar" ) . remove ( this . __newConversationButton ) ;
256- conversationsLayout . getChildControl ( "bar" ) . add ( this . __newConversationButton ) ;
255+ const bar = conversationsLayout . getChildControl ( "bar" ) ;
256+ if ( bar . indexOf ( this . __newConversationButton ) > - 1 ) {
257+ bar . remove ( this . __newConversationButton ) ;
258+ }
259+ bar . add ( this . __newConversationButton ) ;
257260 } ,
258261
259262 __removeConversationPage : function ( conversationId , changeSelection = false ) {
You can’t perform that action at this time.
0 commit comments