Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Fix null error introduced in mastodon#9270 (mastodon#9275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Nov 23, 2018
1 parent 4ce6ed2 commit cd8575a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/status/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
Expand Down

0 comments on commit cd8575a

Please sign in to comment.