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 Jun 30, 2022
1 parent 33ed6a7 commit b8d4660
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 b8d4660

Please sign in to comment.