Fix crash when clearing uninitialized timeline

Fixes #875
master
Thibaut Girka 6 years ago committed by ThibG
parent d126240129
commit b300948526
  1. 2
      app/javascript/flavours/glitch/reducers/timelines.js

@ -83,7 +83,7 @@ const deleteStatus = (state, id, accountId, references) => {
}; };
const clearTimeline = (state, timeline) => { const clearTimeline = (state, timeline) => {
return state.updateIn([timeline, 'items'], list => list.clear()); return state.set(timeline, initialTimeline);
}; };
const filterTimelines = (state, relationship, statuses) => { const filterTimelines = (state, relationship, statuses) => {

Loading…
Cancel
Save