]> cat aescling's git repositories - mastodon.git/commitdiff
Guard against unexisting statuses rendering
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 25 Oct 2016 09:13:16 +0000 (11:13 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 25 Oct 2016 09:13:16 +0000 (11:13 +0200)
app/assets/javascripts/components/components/status.jsx

index 3fdb9a80c1d1498d0be76270f655d9481980ef13..1d1560003beb631d6a60a3dd86384ed10890abd2 100644 (file)
@@ -45,6 +45,10 @@ const Status = React.createClass({
     let media = '';
     let { status, ...other } = this.props;
 
+    if (status === null) {
+      return <div />;
+    }
+
     if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') {
       let displayName = status.getIn(['account', 'display_name']);