Skip to content

Commit c69a57e

Browse files
committedOct 21, 2015
Fix a potential error in <Card>
1 parent b63a94f commit c69a57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/card/card.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Card = React.createClass({
3131
let newChild = undefined;
3232
let newProps = {};
3333
let element = currentChild;
34-
if (!currentChild) {
34+
if (!currentChild || !currentChild.props) {
3535
return null;
3636
}
3737
if (this.state.expanded === false && currentChild.props.expandable === true)

0 commit comments

Comments
 (0)
Please sign in to comment.