Fix crash when clearing uninitialized timeline
Fixes #875remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
d126240129
commit
b300948526
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue