mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Guard against unexisting statuses rendering
This commit is contained in:
parent
de50eff6ac
commit
c1a0633a12
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue