Hey this is a react native code with redux saga.. The code returns a list.map
with "filterUnreadMessages = list"...But for some reason the code return this especific error:
undefined is not an object (evaluating 'message.message_contacts.filter')
const messageIds = list.map(message => message.id); const filterUnreadMessages = list .map(message => message.message_contacts.filter( contact => contact.contact_id === userId && contact.readed_at === null, ),