From 9251699f7c2fd81dae4dc71ec6dc704d4995fc85 Mon Sep 17 00:00:00 2001 From: Luis Felipe Risch <lfr20@inf.ufpr.br> Date: Fri, 28 May 2021 12:24:19 -0300 Subject: [PATCH] Fixed the function of fetch all to return a error --- src/Components/HelperFunctions/getAxiosConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/HelperFunctions/getAxiosConfig.js b/src/Components/HelperFunctions/getAxiosConfig.js index 6d1608bc..6d5dc152 100644 --- a/src/Components/HelperFunctions/getAxiosConfig.js +++ b/src/Components/HelperFunctions/getAxiosConfig.js @@ -220,7 +220,7 @@ export async function fetchAllRequest (urls, onSuccess, onError) { updateAccessToken(res.headers.get('access-token')) } let json = await res.json().catch(err => { - return {}; + return null; }) data.push(json) headers.push(res.headers) -- GitLab