mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
effect dependency fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user