Browse Source

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.
closed-social-v3
unarist 7 years ago
committed by Eugen Rochko
parent
commit
c6db416ff7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/components/status.js

+ 1
- 1
app/javascript/mastodon/components/status.js View File

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

Loading…
Cancel
Save