Fix crash when clearing uninitialized timeline (#9662)

master
ThibG 5 years ago committed by Eugen Rochko
parent 290932602b
commit e74c99edf5
  1. 2
      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) => {

Loading…
Cancel
Save