From b1fd9fbe521654db5a0ae4a56db58b68b75235cf Mon Sep 17 00:00:00 2001 From: jonno85 Date: Wed, 27 Oct 2021 22:02:56 +0200 Subject: [PATCH] check on subKey undefined --- lib/sectioned-multi-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sectioned-multi-select.js b/lib/sectioned-multi-select.js index 3db3e78..b0ccae7 100644 --- a/lib/sectioned-multi-select.js +++ b/lib/sectioned-multi-select.js @@ -944,7 +944,7 @@ class SectionedMultiSelect extends PureComponent { return null } - const isParent = subKey && item[subKey] && item[subKey].length + const isParent = subKey && item && item[subKey] && item[subKey].length return (