Skip to content

Commit 8e73493

Browse files
author
Zach Silveira
authored
Merge pull request #8 from nathan815/master
Fixes null reference error in form.js
2 parents b9b3316 + e30f194 commit 8e73493

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

form.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export default class Form extends React.Component {
99

1010
renderChildren(children, recursiveIndex = 0) {
1111
return React.Children.map(children, (child, index) => {
12+
if(!child)
13+
return;
1214
if (child.props.children)
1315
return React.cloneElement(child, {
1416
...child.props,

0 commit comments

Comments
 (0)