diff --git a/airflow/ui/src/components/FlexibleForm/index.tsx b/airflow/ui/src/components/FlexibleForm/index.tsx index e0e2fbff2602f..1d42985c6f823 100644 --- a/airflow/ui/src/components/FlexibleForm/index.tsx +++ b/airflow/ui/src/components/FlexibleForm/index.tsx @@ -38,19 +38,26 @@ const FlexibleForm = ({ params }: FlexibleFormProps) => { return ( <> - }> - {Object.keys(params).length > 0 && ( - - )} - {Object.entries(params) - .filter(([, param]) => typeof param.schema.section !== "string") - .map(([name, param]) => ( - - ))} - + {Object.entries(params).some(([, param]) => typeof param.schema.section !== "string") ? ( + + Run Parameters + + }> + {Object.keys(params).length > 0 && ( + + )} + {Object.entries(params) + .filter(([, param]) => typeof param.schema.section !== "string") + .map(([name, param]) => ( + + ))} + + + + ) : undefined} {Object.entries(params) .filter(([, secParam]) => secParam.schema.section) .map(([, secParam]) => { @@ -62,27 +69,18 @@ const FlexibleForm = ({ params }: FlexibleFormProps) => { processedSections.set(currentSection, true); return ( - - - {secParam.schema.section} - - }> - {Object.entries(params) - .filter(([, param]) => param.schema.section === currentSection) - .map(([name, param]) => ( - - ))} - - - - + + {secParam.schema.section} + + }> + {Object.entries(params) + .filter(([, param]) => param.schema.section === currentSection) + .map(([name, param]) => ( + + ))} + + + ); } })} diff --git a/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx b/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx index 5cec4be3fe005..d8451387297e7 100644 --- a/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx +++ b/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx @@ -131,8 +131,8 @@ const TriggerDAGForm = ({ dagId, onClose, open }: TriggerDAGFormProps) => { return ( <> - - + + Advanced Options