Closed mikaello closed 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.
items
selectedItems
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.
item.name.length
item.name
undefined
If you removed an item from
items
, but that item stil exist in yourselectedItems
-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 sinceitem.name
isundefined
it will fail.