Fix crash when clearing uninitialized timeline

Fixes #875
This commit is contained in:
Thibaut Girka authored and ThibG committed 2018-12-30 16:56:55 +01:00
1 parent d126240129
commit b300948526
1 file changed
+1 -1
@@ -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) => {