diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-25 11:13:16 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-25 11:13:16 +0200 |
commit | c1a0633a1215987c9ec4c2c35e1ce137a0c11b95 (patch) | |
tree | 4dae1871d3c6e6f32acb9bd51cf416d44fa2479e /app/assets/javascripts/components | |
parent | de50eff6acda8b28940cff9b955cfbded3c68b58 (diff) |
Guard against unexisting statuses rendering
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r-- | app/assets/javascripts/components/components/status.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/components/status.jsx b/app/assets/javascripts/components/components/status.jsx index 3fdb9a80c..1d1560003 100644 --- a/app/assets/javascripts/components/components/status.jsx +++ b/app/assets/javascripts/components/components/status.jsx @@ -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']); |