From: unarist Date: Fri, 26 May 2017 12:07:48 +0000 (+0900) Subject: Fix "Cannot read property" on missing status (#3322) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c6db416ff70724cd19898fdc91feac6f539b10f3;p=mastodon.git 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. --- diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 5405ddfd1..a9f9c1b6b 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -111,7 +111,7 @@ class Status extends ImmutablePureComponent { const { isHidden } = this.state; if (status === null) { - return
; + return null; } if (isIntersecting === false && isHidden) {