From e74c99edf56f6aa3ec12f324f260e4d7c3a0e477 Mon Sep 17 00:00:00 2001 From: ThibG Date: Sun, 30 Dec 2018 18:57:39 +0100 Subject: 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 beab2ea03..1f7ece812 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) => { -- cgit