Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
support 0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Rivet committed Apr 11, 2019
1 parent d48e81d commit b600b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const createContainer = component => isSimpleComponent(component) ?

class TreeContainer extends Component {
getChildren(components) {
if (!components) {
if (isNil(components)) {
return null;
}

Expand Down

0 comments on commit b600b8c

Please # to comment.