fix: Handle errors without response (#4274)
This commit is contained in:
committed by
Eugen Rochko
parent
bbdcfd6baf
commit
015269914e
@ -113,7 +113,7 @@ export function fetchContext(id) {
|
||||
dispatch(fetchContextSuccess(id, response.data.ancestors, response.data.descendants));
|
||||
|
||||
}).catch(error => {
|
||||
if (error.response.status === 404) {
|
||||
if (error.response && error.response.status === 404) {
|
||||
dispatch(deleteFromTimelines(id));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user