From b43c6fb81d1a34369a4be4f829850a7b97e3ada1 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 4 Mar 2020 22:48:06 +0000 Subject: [PATCH] bugfix: MD Select throwin console err --- packages/materialdesign-components/src/Common/ItemStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/materialdesign-components/src/Common/ItemStore.js b/packages/materialdesign-components/src/Common/ItemStore.js index cf0b7de24e..ed553cd847 100644 --- a/packages/materialdesign-components/src/Common/ItemStore.js +++ b/packages/materialdesign-components/src/Common/ItemStore.js @@ -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 {