Fix null error introduced in #9270 (#9275)

This commit is contained in:
Eugen Rochko 2018-11-12 22:07:31 +01:00
parent 4ce6ed2021
commit cd8575aef6

View File

@ -73,7 +73,7 @@ export default class Card extends React.PureComponent {
}; };
componentWillReceiveProps (nextProps) { componentWillReceiveProps (nextProps) {
if (!this.props.card.equals(nextProps.card)) { if (!Immutable.is(this.props.card, nextProps.card)) {
this.setState({ embedded: false }); this.setState({ embedded: false });
} }
} }