Fix "Cannot read property" on missing status (#3322)

I've found this issue when I clicked replies to muted user on the timeline.

Properties I've removed in here were added with lazy loading using
IntersectionObserver (5efcea69), but those statuses are not need to be
tracked anyway because it will be rendered as only empty div.
lolsob-rspec
unarist 2017-05-26 21:07:48 +09:00 committed by Eugen Rochko
parent 98d10851ca
commit c9325ad703
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class Status extends ImmutablePureComponent {
const { isHidden } = this.state;
if (status === null) {
return <div ref={this.handleRef} data-id={status.get('id')} />;
return null;
}
if (isIntersecting === false && isHidden) {