From 8ccc863ae8d05ff6c59e9c397b79ed70361ff163 Mon Sep 17 00:00:00 2001 From: ThibG Date: Tue, 8 May 2018 13:28:55 +0200 Subject: [PATCH] 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. --- .../mastodon/features/ui/containers/status_list_container.js | 2 ++ 1 file changed, 2 insertions(+) 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 4efacda65e..e5b1edc4a0 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;