Skip to content

Commit

Permalink
check on subKey undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jonno85 committed Nov 25, 2022
1 parent 69aee45 commit b1fd9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sectioned-multi-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<View
Expand Down

0 comments on commit b1fd9fb

Please sign in to comment.