Skip to content

Commit

Permalink
fix infinite loop (#4873)
Browse files Browse the repository at this point in the history
Co-authored-by: amanape <[email protected]>
  • Loading branch information
rbren and amanape authored Nov 11, 2024
1 parent 037d770 commit bf8ccc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
{
Expand Down

0 comments on commit bf8ccc8

Please sign in to comment.