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

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 (8e4d1cba), but those statuses are not need to be
tracked anyway because it will be rendered as only empty div.
parent b00cb2ae
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
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