fix: harden token and URL handling
* fix: harden token and URL handling * test: restore full web test suite --------- Co-authored-by: batumilove <batumilove@users.noreply.github.com>
This commit is contained in:
committed by
Offending Commit
parent
6960bf4ffe
commit
5cfbae6248
@@ -7,7 +7,7 @@ const POLL_INTERVAL_MS = 30_000;
|
||||
export function useHealthStatus() {
|
||||
const { active } = useInstances();
|
||||
return useQuery({
|
||||
queryKey: ["health", active?.id, active?.baseUrl, active?.token],
|
||||
queryKey: ["health", active?.id, active?.baseUrl, Boolean(active?.token)],
|
||||
queryFn: async () => {
|
||||
if (!active) throw new Error("No active instance");
|
||||
return checkConnection(active.baseUrl, active.token || undefined);
|
||||
|
||||
Reference in New Issue
Block a user