From be97c68721e00cb9657daa60236b2fae1fc3cafe Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 23 May 2024 11:22:14 +0530 Subject: [PATCH] fix: TypeError cannot read properties of undefined (reading 'status') (#9505) --- app/javascript/dashboard/components/ChatList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 60966b476..5b592a1f7 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -987,7 +987,7 @@ export default { allSelectedConversationsStatus(status) { if (!this.selectedConversations.length) return false; return this.selectedConversations.every(item => { - return this.$store.getters.getConversationById(item).status === status; + return this.$store.getters.getConversationById(item)?.status === status; }); }, onContextMenuToggle(state) {