From fbc25bdd2dfbc0c2316c5bdae6b8da0c047375c2 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 27 May 2018 19:35:27 +0200 Subject: [PATCH] [Glitch] Do not crash in getStatusIds when there is a gap in the timeline Port b1938d7853f1d52f9bd99244c550cc609dd81202 to glitch-soc --- .../glitch/features/ui/containers/status_list_container.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/flavours/glitch/features/ui/containers/status_list_container.js b/app/javascript/flavours/glitch/features/ui/containers/status_list_container.js index 9047752f54..e0c017f827 100644 --- a/app/javascript/flavours/glitch/features/ui/containers/status_list_container.js +++ b/app/javascript/flavours/glitch/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;