about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/ui
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-27 19:35:27 +0200
committerThibG <thib@sitedethib.com>2018-05-29 21:25:28 +0200
commitfbc25bdd2dfbc0c2316c5bdae6b8da0c047375c2 (patch)
tree8853bbc6871661057aed3a5b17593b7c82d5ed1e /app/javascript/flavours/glitch/features/ui
parent5cc4d34250cade3ad3951907f7e772c95e066a51 (diff)
[Glitch] Do not crash in getStatusIds when there is a gap in the timeline
Port b1938d7853f1d52f9bd99244c550cc609dd81202 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui')
-rw-r--r--app/javascript/flavours/glitch/features/ui/containers/status_list_container.js2
1 files changed, 2 insertions, 0 deletions
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 9047752f5..e0c017f82 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;