mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Update useApi.ts
This commit is contained in:
@@ -18,11 +18,9 @@ export default function useApi(): DefaultService | null {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!accessTokenInfo) return;
|
||||
|
||||
const openApi = new OpenApi({
|
||||
BASE: api_url,
|
||||
TOKEN: accessTokenInfo?.access_token,
|
||||
TOKEN: accessTokenInfo ? accessTokenInfo?.access_token : undefined,
|
||||
});
|
||||
|
||||
setApi(openApi);
|
||||
|
||||
Reference in New Issue
Block a user