bugfix: MD Select throwin console err
This commit is contained in:
parent
19eadf83a3
commit
b43c6fb81d
|
@ -38,7 +38,7 @@ function createItemsStore(componentOnSelect) {
|
|||
}
|
||||
|
||||
function getItemIdx(items, itemId) {
|
||||
return items.findIndex(i => i._id === itemId);
|
||||
return items.findIndex(i => i && i._id === itemId);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue