Skip to content

Commit 4e29f27

Browse files
Merge pull request mui#1651 from louy/master
[Card] Fix a potential error in <Card>
2 parents ca207c4 + c69a57e commit 4e29f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/card/card.jsx

Lines changed: 1 addition & 1 deletion
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)