Skip to content

Commit

Permalink
Merge pull request #272 from homuler/feature/null-check-fix
Browse files Browse the repository at this point in the history
Fix null check bug
  • Loading branch information
AllenFang committed Feb 15, 2016
2 parents 5f40c5b + f403296 commit 38a8bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TableColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TableColumn extends React.Component{
return shouldUpdated;
}

if(typeof children === 'object') {
if(typeof children === 'object' && children !== null) {
if(children.props.type === 'checkbox' || children.props.type === 'radio') {
shouldUpdated = shouldUpdated ||
children.props.type !== nextProps.children.props.type ||
Expand Down

0 comments on commit 38a8bd9

Please sign in to comment.