Fix null error introduced in #9270 (#9275)

lolsob-rspec
Eugen Rochko 2018-11-12 22:07:31 +01:00 committed by GitHub
parent df154d2ffa
commit c735638483
1 changed files with 1 additions and 1 deletions

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 });
} }
} }