chore: Add null checks (#8100)

This commit is contained in:
Shivam Mishra
2023-10-12 19:39:19 +05:30
committed by GitHub
parent ae52ca87aa
commit 5c729ccea5
2 changed files with 4 additions and 4 deletions

View File

@@ -1085,7 +1085,7 @@ export default {
this.conversationId
);
this.inReplyTo = this.currentChat.messages.find(message => {
this.inReplyTo = this.currentChat?.messages?.find(message => {
if (message.id === replyToMessageId) {
return true;
}