Skip to content

Commit

Permalink
Fix crash when clearing uninitialized timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Dec 30, 2018
1 parent 115b1ab commit abf1af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/flavours/glitch/reducers/timelines.js
Expand Up @@ -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) => {
Expand Down

0 comments on commit abf1af1

Please sign in to comment.