Skip to content

Commit

Permalink
Fix crash when clearing uninitialized timeline (mastodon#9662)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and hiyuki2578 committed Oct 2, 2019
1 parent 453ca89 commit 9ff528d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/reducers/timelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 9ff528d

Please sign in to comment.