fix: disable useGetOAuthClientManagedUsers if clientId not defined (#15040)

This commit is contained in:
Morgan authored and GitHub committed 2024-05-15 07:19:22 +00:00
1 parent 0a0c5ef61e
commit 973b624882
1 file changed
+1
@@ -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 };