Fix error handling when re-fetching already-known statuses (#37077)

This commit is contained in:
Claire authored and GitHub committed 2025-12-01 10:52:06 +00:00
1 parent f562ad9f67
commit edfbcfb3f5
2 files changed
+8 -3

No files matched your search

@@ -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));
});
};
}