This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new fef3ec21f fix: unable to create connection for sonarqube server (#8357)
fef3ec21f is described below

commit fef3ec21fa60a792c71048a82f7f5168b678b3bd
Author: Klesh Wong <[email protected]>
AuthorDate: Tue Mar 25 16:12:16 2025 +0800

    fix: unable to create connection for sonarqube server (#8357)
---
 .../src/plugins/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 4537ed1fd..8cd71f61a 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]);
 

Reply via email to