Move search result member into its own object

This commit is contained in:
2020-01-14 00:52:15 +00:00
parent f52ee5532d
commit 579966e7aa
6 changed files with 105 additions and 58 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export const requester = (route, method, token, data) => {
return response.json();
})
.catch(error => {
const code = error.data.status;
const code = error.data ? error.data.status : null;
if (code == 413) {
throw customError({non_field_errors: ['File too big']});
} else if (code >= 400 && code < 500) {