mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 17:14:15 -05:00
Fix crash when clearing uninitialized timeline (#9662)
This commit is contained in:
parent
290932602b
commit
e74c99edf5
@ -88,7 +88,7 @@ const deleteStatus = (state, id, accountId, references) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const clearTimeline = (state, timeline) => {
|
const clearTimeline = (state, timeline) => {
|
||||||
return state.updateIn([timeline, 'items'], list => list.clear());
|
return state.set(timeline, initialTimeline);
|
||||||
};
|
};
|
||||||
|
|
||||||
const filterTimelines = (state, relationship, statuses) => {
|
const filterTimelines = (state, relationship, statuses) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user