feat: show test runs in executions
This commit is contained in:
@@ -43,7 +43,6 @@ function FlowSubstep(props: FlowSubstepProps): React.ReactElement {
|
||||
expanded = false,
|
||||
onExpand,
|
||||
onCollapse,
|
||||
onChange,
|
||||
onSubmit,
|
||||
step,
|
||||
} = props;
|
||||
@@ -57,24 +56,6 @@ function FlowSubstep(props: FlowSubstepProps): React.ReactElement {
|
||||
const formContext = useFormContext();
|
||||
const [validationStatus, setValidationStatus] = React.useState<boolean | null>(validateSubstep(substep, formContext.getValues() as IStep));
|
||||
|
||||
const handleChangeOnBlur = React.useCallback((key: string) => {
|
||||
return (value: string) => {
|
||||
const currentValue = step.parameters?.[key];
|
||||
|
||||
if (currentValue !== value) {
|
||||
onChange({
|
||||
step: {
|
||||
...step,
|
||||
parameters: {
|
||||
...step.parameters,
|
||||
[key]: value,
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
}, [step, onChange]);
|
||||
|
||||
React.useEffect(() => {
|
||||
function validate (step: unknown) {
|
||||
const validationResult = validateSubstep(substep, step as IStep);
|
||||
|
Reference in New Issue
Block a user