mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-15 13:36:35 +02:00
Add timout handling.
This commit is contained in:
@ -42,7 +42,7 @@ function createAPIHook(method) {
|
||||
dispatch({
|
||||
type: API_ACTIONS.FAILURE,
|
||||
payload: getErrorMessage(error),
|
||||
status: error.response.status,
|
||||
status: error.response && error.response.status,
|
||||
});
|
||||
}
|
||||
}, [url, contentType]);
|
||||
|
Reference in New Issue
Block a user