Skip to content

Commit 04bb01f

Browse files
committed
minor
1 parent afcda38 commit 04bb01f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)