Skip to content

Commit f403296

Browse files
committed
check null value correctly.
1 parent 8b98c3c commit f403296

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)