-export const RunProcessSecondStepForm = connect(mapStateToProps)(
- ({ inputs, valid, goBack, runProcess }: RunProcessSecondStepFormProps) =>
- <Grid container spacing={16}>
+export const RunProcessSecondStepForm = connect(mapStateToProps, { onPresetChange: selectPreset })(
+ ({ inputs, workflow, selectedPreset, presets, onPresetChange, valid, goBack, runProcess }: RunProcessSecondStepFormProps) =>
+ <Grid container spacing={16} data-cy="new-process-panel">