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