From 300c7ba9dc1afd13a0face96daf05d8896f88bdb Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 25 Mar 2025 15:55:21 +0800 Subject: [PATCH] fix: unable to create connection for sonarqube server --- .../register/sonarqube/connection-fields/organization.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-ui/src/plugins/register/sonarqube/connection-fields/organization.tsx b/config-ui/src/plugins/register/sonarqube/connection-fields/organization.tsx index 4537ed1fd3e..8cd71f61a38 100644 --- a/config-ui/src/plugins/register/sonarqube/connection-fields/organization.tsx +++ b/config-ui/src/plugins/register/sonarqube/connection-fields/organization.tsx @@ -39,7 +39,7 @@ export const Organization = ({ initialValues, values, setValues, setErrors }: Pr useEffect(() => { setErrors({ - org: values.org ? '' : 'organization is required', + org: (values.endpoint != 'https://sonarcloud.io/api/' || values.org) ? '' : 'organization is required', }); }, [values.org]);