Skip to content

Commit afcda38

Browse files
committed
remove the temporary conversation page
1 parent 804616a commit afcda38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/static-webserver/client/source/class/osparc/study/Conversations.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@ qx.Class.define("osparc.study.Conversations", {
221221

222222
__addToPages: function(conversationPage) {
223223
const conversationsLayout = this.getChildControl("conversations-layout");
224+
if (conversationsLayout.getChildren().length === 1) {
225+
// remove the temporary conversation page
226+
if (conversationsLayout.getChildren()[0].getConversationId() === null) {
227+
conversationsLayout.remove(conversationsLayout.getChildren()[0]);
228+
}
229+
}
224230
conversationsLayout.add(conversationPage);
225231

226232
if (this.__newConversationButton === null) {

0 commit comments

Comments
 (0)