toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
566 stars 315 forks source link

Do not try to display items not found #21

Closed mikaello closed 7 years ago

mikaello commented 7 years ago

If you removed an item from items, but that item stil exist in your selectedItems-prop, then this module will fail because it tries to access this item.

This will fail because the item is not found and an empty object is returned, and then the property item.name.length is accessed, but since item.name is undefined it will fail.