File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,13 @@ qx.Class.define("osparc.study.Conversations", {
284284 } ,
285285
286286 __addConversationPage : function ( conversationData ) {
287+ // ignore it if it was already there
288+ const conversationId = conversationData [ "conversationId" ] ;
289+ const conversation = this . __getConversation ( conversationId ) ;
290+ if ( conversation ) {
291+ return null ;
292+ }
293+
287294 const conversationPage = this . __createConversationPage ( conversationData ) ;
288295 this . __addToPages ( conversationPage ) ;
289296
@@ -309,7 +316,9 @@ qx.Class.define("osparc.study.Conversations", {
309316 osparc . study . Conversations . addConversation ( studyData [ "uuid" ] , "new " + ( this . __conversations . length + 1 ) )
310317 . then ( conversationDt => {
311318 const newConversationPage = this . __addConversationPage ( conversationDt ) ;
312- conversationsLayout . setSelection ( [ newConversationPage ] ) ;
319+ if ( newConversationPage ) {
320+ conversationsLayout . setSelection ( [ newConversationPage ] ) ;
321+ }
313322 } ) ;
314323 } ) ;
315324 conversationsLayout . getChildControl ( "bar" ) . add ( newConversationButton ) ;
You can’t perform that action at this time.
0 commit comments