Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

undefined is not an object (evaluating 'message.message_contacts.filter')

$
0
0

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,      ),

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>