This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-10-test by this push:
new 846963d7c80 Fix Trigger Form with Empty Object Default (#46872)
846963d7c80 is described below
commit 846963d7c80481c041e5bd2827e63afd89a7ceb8
Author: Jens Scheffler <[email protected]>
AuthorDate: Wed Feb 19 17:52:43 2025 +0100
Fix Trigger Form with Empty Object Default (#46872)
---
airflow/www/templates/airflow/trigger.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www/templates/airflow/trigger.html
b/airflow/www/templates/airflow/trigger.html
index 20019db6903..3bb50af204d 100644
--- a/airflow/www/templates/airflow/trigger.html
+++ b/airflow/www/templates/airflow/trigger.html
@@ -120,7 +120,7 @@
{% elif form_details.schema and "object" in form_details.schema.type %}
<textarea class="form-control" name="element_{{ form_key }}"
id="element_{{ form_key }}" valuetype="object" rows="6"
{%- if not "null" in form_details.schema.type %} required=""{% endif
-%}>
- {%- if form_details.value %}
+ {%- if form_details.value != None %}
{{- form_details.value | tojson() -}}
{% endif -%}
</textarea>