]> cat aescling's git repositories - mastodon.git/commitdiff
Do not crash in getStatusIds when there is a gap in the timeline (fixes #7400) (...
authorThibG <thib@sitedethib.com>
Tue, 8 May 2018 11:28:55 +0000 (13:28 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 8 May 2018 11:28:55 +0000 (13:28 +0200)
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

index 4efacda65e05965298c27e1e8bb5f286f4ac8925..e5b1edc4a04ac136620cd72371a26110e07a9897 100644 (file)
@@ -21,6 +21,8 @@ const makeGetStatusIds = () => createSelector([
   }
 
   return statusIds.filter(id => {
+    if (id === null) return true;
+
     const statusForId = statuses.get(id);
     let showStatus    = true;