From bf8ccc8fc38b3bce2ef8dea8092082d0c96d5fc3 Mon Sep 17 00:00:00 2001 From: Robert Brennan Date: Mon, 11 Nov 2024 05:59:43 -0500 Subject: [PATCH] fix infinite loop (#4873) Co-authored-by: amanape <83104063+amanape@users.noreply.github.com> --- frontend/src/services/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/services/api.ts b/frontend/src/services/api.ts index 33ecc0e6370c..82f4468c1b08 100644 --- a/frontend/src/services/api.ts +++ b/frontend/src/services/api.ts @@ -63,7 +63,7 @@ export async function request( } catch (e) { onFail(`Error fetching ${url}`); } - if (response?.status === 401) { + if (response?.status === 401 && !url.startsWith("/api/authenticate")) { await request( "/api/authenticate", {