1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix crash when clearing uninitialized timeline (#9662)

This commit is contained in:
ThibG 2018-12-30 18:57:39 +01:00 committed by Eugen Rochko
parent 290932602b
commit e74c99edf5

View file

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