fix(ui): fix warning
This commit is contained in:
parent
65ae0dcaf7
commit
a65e8cbfb2
1 changed files with 2 additions and 2 deletions
|
|
@ -34,9 +34,9 @@ export default () => (next) => (action) => {
|
|||
}
|
||||
})
|
||||
.catch(async (e) => {
|
||||
const data = await e.response.json();
|
||||
const data = await e.response?.json();
|
||||
logger.error('Error during API request. ', e);
|
||||
return next({ type: FAILURE, errors: parseError(data.errors) });
|
||||
return next({ type: FAILURE, errors: data ? parseError(data.errors) : [] });
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue