about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-12-30 12:14:41 +0100
committerThibG <thib@sitedethib.com>2018-12-30 16:56:55 +0100
commitb300948526d967aaf5608c93546ee0d54940c0ef (patch)
tree49947e8720881f6cf0544b54e88de543bb218694 /app/javascript
parentd126240129681c64063f7f339eba55c105a94082 (diff)
Fix crash when clearing uninitialized timeline
Fixes #875
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/reducers/timelines.js2
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) => {