Skip to content

Commit

Permalink
Merge pull request mui#1651 from louy/master
Browse files Browse the repository at this point in the history
[Card] Fix a potential error in <Card>
  • Loading branch information
oliviertassinari committed Oct 21, 2015
2 parents ca207c4 + c69a57e commit 4e29f27
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 4e29f27

Please sign in to comment.