From 973b62488287f902dd7748c596d99d835bff4ec4 Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Wed, 15 May 2024 10:19:22 +0300 Subject: [PATCH] fix: disable useGetOAuthClientManagedUsers if clientId not defined (#15040) --- .../lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts b/apps/web/lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts index 3184396972..5201e9d051 100644 --- a/apps/web/lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts +++ b/apps/web/lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts @@ -77,6 +77,7 @@ export const useGetOAuthClientManagedUsers = (clientId: string) => { headers: { "Content-type": "application/json" }, }).then((res) => res.json()); }, + enabled: Boolean(clientId), }); return { isLoading, error, data: response?.data, refetch };