From: ThibG Date: Tue, 8 May 2018 11:28:55 +0000 (+0200) Subject: Do not crash in getStatusIds when there is a gap in the timeline (fixes #7400) (... X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b1938d7853f1d52f9bd99244c550cc609dd81202;p=mastodon.git Do not crash in getStatusIds when there is a gap in the timeline (fixes #7400) (#7415) Fixes a crash occurring when the “gap” disconnection indicator is to be displayed in a filtered timeline. --- diff --git a/app/javascript/mastodon/features/ui/containers/status_list_container.js b/app/javascript/mastodon/features/ui/containers/status_list_container.js index 4efacda65..e5b1edc4a 100644 --- a/app/javascript/mastodon/features/ui/containers/status_list_container.js +++ b/app/javascript/mastodon/features/ui/containers/status_list_container.js @@ -21,6 +21,8 @@ const makeGetStatusIds = () => createSelector([ } return statusIds.filter(id => { + if (id === null) return true; + const statusForId = statuses.get(id); let showStatus = true;