fix: TypeError cannot read properties of undefined (reading 'status') (#9505)

This commit is contained in:
Sivin Varghese
2024-05-23 11:22:14 +05:30
committed by GitHub
parent 4b93738462
commit be97c68721

View File

@@ -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) {