about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-11-12 22:07:31 +0100
committerGitHub <noreply@github.com>2018-11-12 22:07:31 +0100
commitbb69d154c43da667d5768e2707d2240c60b7346a (patch)
tree8401b53f8be9b0c652b323b8ce0c5b8c944ae98d /app/javascript
parentbbd8fdd185063d8b2464b20ee95c366718b75fc6 (diff)
Fix null error introduced in #9270 (#9275)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/features/status/components/card.js2
1 files changed, 1 insertions, 1 deletions
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 });
     }
   }