From: Eugen Rochko Date: Mon, 12 Nov 2018 21:07:31 +0000 (+0100) Subject: Fix null error introduced in #9270 (#9275) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=bb69d154c43da667d5768e2707d2240c60b7346a;p=mastodon.git Fix null error introduced in #9270 (#9275) --- diff --git a/app/javascript/mastodon/features/status/components/card.js b/app/javascript/mastodon/features/status/components/card.js index 3474a11e5..235d209b8 100644 --- a/app/javascript/mastodon/features/status/components/card.js +++ b/app/javascript/mastodon/features/status/components/card.js @@ -73,7 +73,7 @@ export default class Card extends React.PureComponent { }; componentWillReceiveProps (nextProps) { - if (!this.props.card.equals(nextProps.card)) { + if (!Immutable.is(this.props.card, nextProps.card)) { this.setState({ embedded: false }); } }