Fix public timelines being broken by new toots when they are not mounted (#10131)
This commit is contained in:
@ -158,7 +158,9 @@ export function submitCompose(routerHistory) {
|
||||
// into the columns
|
||||
|
||||
const insertIfOnline = timelineId => {
|
||||
if (getState().getIn(['timelines', timelineId, 'items', 0]) !== null) {
|
||||
const timeline = getState().getIn(['timelines', timelineId]);
|
||||
|
||||
if (timeline && timeline.get('items').size > 0 && timeline.getIn(['items', 0]) !== null && timeline.get('online')) {
|
||||
dispatch(updateTimeline(timelineId, { ...response.data }));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user