From cd5a929037496fc244a99b7f240a802c2d1e28f7 Mon Sep 17 00:00:00 2001 From: ThibG Date: Sun, 30 Dec 2018 18:57:39 +0100 Subject: [PATCH] Fix crash when clearing uninitialized timeline (#9662) --- app/javascript/mastodon/reducers/timelines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/reducers/timelines.js b/app/javascript/mastodon/reducers/timelines.js index beab2ea038..1f7ece8122 100644 --- a/app/javascript/mastodon/reducers/timelines.js +++ b/app/javascript/mastodon/reducers/timelines.js @@ -88,7 +88,7 @@ const deleteStatus = (state, id, accountId, references) => { }; const clearTimeline = (state, timeline) => { - return state.updateIn([timeline, 'items'], list => list.clear()); + return state.set(timeline, initialTimeline); }; const filterTimelines = (state, relationship, statuses) => {