Skip to content

Commit 48e3e91

Browse files
committed
minor
1 parent 84ffd79 commit 48e3e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ qx.Class.define("osparc.study.Conversations", {
130130
},
131131

132132
__getConversationPage: function(conversationId) {
133-
return this.__conversationsPages.find(conversationPage => conversationPage.getConversation() && conversationPage.getConversation().getConversationId() === conversationId);
133+
return this.__conversationsPages.find(conversationPage => conversationPage.getConversationId() === conversationId);
134134
},
135135

136136
__applyStudyData: function(studyData) {
@@ -143,7 +143,7 @@ qx.Class.define("osparc.study.Conversations", {
143143
conversations.forEach(conversation => this.__addConversationPage(conversation));
144144
if (this.__openConversationId) {
145145
const conversationsLayout = this.getChildControl("conversations-layout");
146-
const conversation = conversationsLayout.getSelectables().find(c => c.getConversationId() && c.getConversationId().getConversationId() === this.__openConversationId);
146+
const conversation = conversationsLayout.getSelectables().find(c => c.getConversationId() === this.__openConversationId);
147147
if (conversation) {
148148
conversationsLayout.setSelection([conversation]);
149149
}

0 commit comments

Comments
 (0)