Browse Source

Guard against unexisting statuses rendering

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
c1a0633a12
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/assets/javascripts/components/components/status.jsx

+ 4
- 0
app/assets/javascripts/components/components/status.jsx View 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']);

Loading…
Cancel
Save