From f4032960bb137016aa956169d7000f728aabb61b Mon Sep 17 00:00:00 2001 From: homuler Date: Mon, 15 Feb 2016 13:22:06 +0900 Subject: [PATCH] check null value correctly. --- src/TableColumn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TableColumn.js b/src/TableColumn.js index 17e44a198..788ef48bb 100644 --- a/src/TableColumn.js +++ b/src/TableColumn.js @@ -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 ||