fix: sentry issues [CW-2222][CW-2232] (#7591)

This commit is contained in:
Shivam Mishra
2023-07-26 23:37:37 +05:30
committed by GitHub
parent 846f520ad2
commit 12c338364e
2 changed files with 15 additions and 6 deletions

View File

@@ -242,7 +242,9 @@ export default {
get() {
const inboxList = this.contact.contactableInboxes || [];
return (
inboxList.find(inbox => inbox.inbox.id === this.targetInbox.id) || {
inboxList.find(inbox => {
return inbox.inbox?.id && inbox.inbox?.id === this.targetInbox?.id;
}) || {
inbox: {},
}
);