effect dependency fix

This commit is contained in:
Sara
2023-11-02 16:10:25 +01:00
parent e65efb841f
commit 82a9a1764a

View File

@@ -27,7 +27,7 @@ export default function getApi(protectedPath: boolean): DefaultApi | undefined {
: undefined, : undefined,
}); });
setApi(new DefaultApi(apiConfiguration)); setApi(new DefaultApi(apiConfiguration));
}, [!accessTokenInfo]); }, [!accessTokenInfo, protectedPath]);
return api; return api;
} }