Skip to content

Commit

Permalink
check null value correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Feb 15, 2016
1 parent 8b98c3c commit f403296
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 f403296

Please sign in to comment.