You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/04/30 09:25:28 UTC
(airflow) branch v3-0-test updated: [v3-0-test] Fix edit port (#50002) (#50010)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new fbd0c1896ab [v3-0-test] Fix edit port (#50002) (#50010)
fbd0c1896ab is described below
commit fbd0c1896abe20021e0ea212dd92a72d5ffba5f8
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Wed Apr 30 11:25:22 2025 +0200
[v3-0-test] Fix edit port (#50002) (#50010)
(cherry picked from commit 2dacd8843263108fcaf46f77df6291dd6cfdd10a)
Co-authored-by: Shubham Raj <48...@users.noreply.github.com>
---
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,
});