Skip to content

Commit

Permalink
fix(RHINENG-7083): Temporarily ignore 403 when checking hosts count (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat authored Jan 15, 2024
1 parent c0f7e69 commit f2f6953
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const Routes = () => {

useEffect(() => {
// zero state check
try {
(async () => {
(async () => {
try {
const hasConventionalSystems = await inventoryHasConventionalSystems();
setHasConventionalSystems(hasConventionalSystems);

Expand All @@ -69,10 +69,14 @@ export const Routes = () => {
}

setIsLoading(false);
})();
} catch (e) {
console.error(e);
}
} catch (error) {
console.error(error);

if (error.response.status === 403) {
setIsLoading(false);
}
}
})();
}, []);

let element = useRoutes([
Expand Down

0 comments on commit f2f6953

Please sign in to comment.