Skip to content

Commit 38a8bd9

Browse files
committed
Merge pull request #272 from homuler/feature/null-check-fix
Fix null check bug
2 parents 5f40c5b + f403296 commit 38a8bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableColumn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TableColumn extends React.Component{
2020
return shouldUpdated;
2121
}
2222

23-
if(typeof children === 'object') {
23+
if(typeof children === 'object' && children !== null) {
2424
if(children.props.type === 'checkbox' || children.props.type === 'radio') {
2525
shouldUpdated = shouldUpdated ||
2626
children.props.type !== nextProps.children.props.type ||

0 commit comments

Comments
 (0)