This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new 7f120a5be8f [v3-1-test] BUGFIX: trigger ui parameter field is dict
when param.value is null (#58682) (#58899)
7f120a5be8f is described below
commit 7f120a5be8ff9c96f1645303018b290a22ec8852
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Dec 1 16:33:36 2025 +0100
[v3-1-test] BUGFIX: trigger ui parameter field is dict when param.value is
null (#58682) (#58899)
* return 'null' when param.value is null, rather than typeof(null)
* added 'null' to list of enum types
(cherry picked from commit 0adfc5bd7c82e03773627f8116db90bf669f8866)
Co-authored-by: Tomi <[email protected]>
---
.../src/airflow/ui/src/components/FlexibleForm/FieldSelector.tsx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldSelector.tsx
b/airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldSelector.tsx
index 7dcd092615d..30586aad1a5 100644
--- a/airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldSelector.tsx
+++ b/airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldSelector.tsx
@@ -47,6 +47,11 @@ const inferType = (param: ParamSpec) => {
return "array";
}
+ // Missing value, return 'null' as typeof(null) = 'dict'
+ if (param.value === null) {
+ return "null";
+ }
+
return typeof param.value;
};
@@ -61,7 +66,7 @@ const isFieldDate = (fieldType: string, fieldSchema:
ParamSchema) =>
const isFieldDateTime = (fieldType: string, fieldSchema: ParamSchema) =>
fieldType === "string" && fieldSchema.format === "date-time";
-const enumTypes = ["string", "number", "integer"];
+const enumTypes = ["null", "string", "number", "integer"];
const isFieldDropdown = (fieldType: string, fieldSchema: ParamSchema) =>
enumTypes.includes(fieldType) && Array.isArray(fieldSchema.enum);