Fix error handling when re-fetching already-known statuses (#37077)
This commit is contained in:
parent
1ef4bbd88d
commit
b0c141e658
2 changed files with 8 additions and 3 deletions
|
|
@ -85,6 +85,8 @@ export function fetchStatus(id, {
|
|||
dispatch(fetchStatusSuccess(skipLoading));
|
||||
}).catch(error => {
|
||||
dispatch(fetchStatusFail(id, error, skipLoading, parentQuotePostId));
|
||||
if (error.status === 404)
|
||||
dispatch(deleteFromTimelines(id));
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue