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

shubhamraj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2dacd884326 Fix edit port (#50002)
2dacd884326 is described below

commit 2dacd8843263108fcaf46f77df6291dd6cfdd10a
Author: Shubham Raj <[email protected]>
AuthorDate: Wed Apr 30 14:31:04 2025 +0530

    Fix edit port (#50002)
---
 airflow-core/src/airflow/ui/src/queries/useEditConnection.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/queries/useEditConnection.tsx 
b/airflow-core/src/airflow/ui/src/queries/useEditConnection.tsx
index 49a864e6244..86225053a60 100644
--- a/airflow-core/src/airflow/ui/src/queries/useEditConnection.tsx
+++ b/airflow-core/src/airflow/ui/src/queries/useEditConnection.tsx
@@ -91,7 +91,8 @@ export const useEditConnection = (
         ...requestBody,
         conn_type: requestBody.conn_type,
         connection_id: initialConnection.connection_id,
-        port: Number(requestBody.port),
+        // eslint-disable-next-line unicorn/no-null
+        port: requestBody.port === "" ? null : Number(requestBody.port),
       },
       updateMask,
     });

Reply via email to