Fix crash when clearing uninitialized timeline

Fixes #875
This commit is contained in:
Thibaut Girka 2018-12-30 12:14:41 +01:00 committed by ThibG
parent 57791a2044
commit c1b47fe774

View file

@ -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) => {