Skip to content

Commit

Permalink
fix: TypeError cannot read properties of undefined (reading 'status')
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsivin committed May 20, 2024
1 parent 00dca94 commit 0724c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/dashboard/components/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,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) {
Expand Down

0 comments on commit 0724c13

Please sign in to comment.