Skip to content
Snippets Groups Projects
Commit e74c99ed authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Fix crash when clearing uninitialized timeline (#9662)

parent 29093260
No related branches found
No related tags found
No related merge requests found
......@@ -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) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment