diff --git a/src/shared/hooks/BackendAPI/useGet.js b/src/shared/hooks/BackendAPI/useGet.js index 96df8ce675..8c59ab065b 100644 --- a/src/shared/hooks/BackendAPI/useGet.js +++ b/src/shared/hooks/BackendAPI/useGet.js @@ -97,11 +97,10 @@ const useGetHook = processDataFn => ); useEffect(() => { - console.log(error?.code); const receivedForbidden = error?.code === 403; // POLLING - if (!pollingInterval || receivedForbidden || skip || error) return; + if (!pollingInterval || receivedForbidden || skip) return; const intervalId = setInterval(refetch(true, data), pollingInterval); return _ => clearInterval(intervalId); }, [path, pollingInterval, data, error, skip, refetch]);