Skip to content

Commit

Permalink
Fix a potential error in <Card>
Browse files Browse the repository at this point in the history
  • Loading branch information
louy committed Oct 21, 2015
1 parent b63a94f commit c69a57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/card/card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Card = React.createClass({
let newChild = undefined;
let newProps = {};
let element = currentChild;
if (!currentChild) {
if (!currentChild || !currentChild.props) {
return null;
}
if (this.state.expanded === false && currentChild.props.expandable === true)
Expand Down

0 comments on commit c69a57e

Please sign in to comment.