about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-12-30 18:57:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-12-30 18:57:39 +0100
commite74c99edf56f6aa3ec12f324f260e4d7c3a0e477 (patch)
treec77f2bb663185907d1ca867dd87e1953fae937bf /app
parent290932602b32e3bdc2a4c5cb278fb73755a2cd52 (diff)
Fix crash when clearing uninitialized timeline (#9662)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/reducers/timelines.js2
1 files changed, 1 insertions, 1 deletions
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) => {