Commit a9662e24 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: don't add recommended fields to steps

parent 289789e9
Pipeline #293049 passed with stages
in 18 minutes and 3 seconds
......@@ -101,7 +101,7 @@ export function WorkflowForm(props: WorkflowFormProps): JSX.Element {
}
// TODO: Avoid validating whole form for single step
// TODO: preprocess with removeEmptyFields only when creatring new workflow
// TODO: preprocess with removeEmptyFields only when creating new workflow
const errorMap = useItemFormErrorMap()
const _validate = validateSchema(
workflowWithStepsInputSchema,
......@@ -208,7 +208,7 @@ function WorkflowStepsFormSection(props: WorkflowStepsFormSectionProps): JSX.Ele
fieldArray.fields.remove(index)
},
})
fieldArray.fields.push({ ...recommendedFields, label: undefined, description: undefined })
fieldArray.fields.push({ label: undefined, description: undefined })
}
return (
......
......@@ -219,7 +219,7 @@ function WorkflowStepsFormSection(props: WorkflowStepsFormSectionProps): JSX.Ele
fieldArray.fields.remove(index)
},
})
fieldArray.fields.push({ ...recommendedFields, label: undefined, description: undefined })
fieldArray.fields.push({ label: undefined, description: undefined })
}
return (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment