Guard against unexisting statuses rendering
parent
de50eff6ac
commit
c1a0633a12
|
@ -45,6 +45,10 @@ const Status = React.createClass({
|
||||||
let media = '';
|
let media = '';
|
||||||
let { status, ...other } = this.props;
|
let { status, ...other } = this.props;
|
||||||
|
|
||||||
|
if (status === null) {
|
||||||
|
return <div />;
|
||||||
|
}
|
||||||
|
|
||||||
if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') {
|
if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') {
|
||||||
let displayName = status.getIn(['account', 'display_name']);
|
let displayName = status.getIn(['account', 'display_name']);
|
||||||
|
|
||||||
|
|
Reference in New Issue