From b1938d7853f1d52f9bd99244c550cc609dd81202 Mon Sep 17 00:00:00 2001 From: ThibG Date: Tue, 8 May 2018 13:28:55 +0200 Subject: Do not crash in getStatusIds when there is a gap in the timeline (fixes #7400) (#7415) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a crash occurring when the “gap” disconnection indicator is to be displayed in a filtered timeline. --- app/javascript/mastodon/features/ui/containers/status_list_container.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') 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; -- cgit