fix infinite loop (#4873)

Co-authored-by: amanape <83104063+amanape@users.noreply.github.com>
This commit is contained in:
Robert Brennan 2024-11-11 05:59:43 -05:00 committed by GitHub
parent 037d770f66
commit bf8ccc8fc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",
{