Skip to content
Snippets Groups Projects
Commit c1a0633a authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Guard against unexisting statuses rendering

parent de50eff6
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment