From 82a9a1764a26db2a4d1cf8c8c48505740ffc4a52 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 2 Nov 2023 16:10:25 +0100 Subject: [PATCH] effect dependency fix --- www/app/lib/getApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/app/lib/getApi.ts b/www/app/lib/getApi.ts index 3e5f4197..ded7da53 100644 --- a/www/app/lib/getApi.ts +++ b/www/app/lib/getApi.ts @@ -27,7 +27,7 @@ export default function getApi(protectedPath: boolean): DefaultApi | undefined { : undefined, }); setApi(new DefaultApi(apiConfiguration)); - }, [!accessTokenInfo]); + }, [!accessTokenInfo, protectedPath]); return api; }