diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-12-30 12:14:41 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-12-30 16:56:55 +0100 |
commit | b300948526d967aaf5608c93546ee0d54940c0ef (patch) | |
tree | 49947e8720881f6cf0544b54e88de543bb218694 | |
parent | d126240129681c64063f7f339eba55c105a94082 (diff) |
Fix crash when clearing uninitialized timeline
Fixes #875
-rw-r--r-- | app/javascript/flavours/glitch/reducers/timelines.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/timelines.js b/app/javascript/flavours/glitch/reducers/timelines.js index acd127833..d7d5ac43f 100644 --- a/app/javascript/flavours/glitch/reducers/timelines.js +++ b/app/javascript/flavours/glitch/reducers/timelines.js @@ -83,7 +83,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) => { |