mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-12-14 04:03:37 +01: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