fixed ibm onboarding to not disable query when no data is available

This commit is contained in:
Lucas Oliveira 2025-11-14 17:54:26 -03:00
parent a525b07f6f
commit 74b9544515

View file

@ -73,12 +73,9 @@ export function IBMOnboarding({
error: modelsError,
} = useGetIBMModelsQuery(
{
endpoint: debouncedEndpoint,
apiKey: debouncedApiKey,
projectId: debouncedProjectId,
},
{
enabled: !!debouncedEndpoint && !!debouncedApiKey && !!debouncedProjectId,
endpoint: debouncedEndpoint ? debouncedEndpoint : undefined,
apiKey: debouncedApiKey ? debouncedApiKey : undefined,
projectId: debouncedProjectId ? debouncedProjectId : undefined,
},
);