From 8041f65e1435c8d3e17081aa5f935ff91b52fbcd Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Thu, 19 Feb 2026 15:37:40 +0100 Subject: [PATCH] Fix credential validation logic in ToolForm component Updated the hasCredentialsErrors computed property to include a check for toolHasRequiredServiceCredentials. This ensures that the validation correctly reflects whether all required service for a required credentials are provided by the user. --- client/src/components/Tool/ToolForm.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/components/Tool/ToolForm.vue b/client/src/components/Tool/ToolForm.vue index 18c068ebb92..db8d313c7a3 100644 --- a/client/src/components/Tool/ToolForm.vue +++ b/client/src/components/Tool/ToolForm.vue @@ -276,10 +276,11 @@ export default { }, hasCredentialsErrors() { if (this.formConfig.credentials?.length) { - const { hasUserProvidedAllRequiredServiceCredentials } = useUserToolCredentials( - this.formConfig.id, - this.formConfig.version, - ); + const { hasUserProvidedAllRequiredServiceCredentials, toolHasRequiredServiceCredentials } = + useUserToolCredentials(this.formConfig.id, this.formConfig.version); + if (!toolHasRequiredServiceCredentials.value) { + return false; + } return !hasUserProvidedAllRequiredServiceCredentials.value; } return false;