diff --git a/x-pack/legacy/plugins/ml/public/jobs/new_job_new/recognize/components/job_settings_form.tsx b/x-pack/legacy/plugins/ml/public/jobs/new_job_new/recognize/components/job_settings_form.tsx index e5ea8fe72cbbda..50245bb753fc4e 100644 --- a/x-pack/legacy/plugins/ml/public/jobs/new_job_new/recognize/components/job_settings_form.tsx +++ b/x-pack/legacy/plugins/ml/public/jobs/new_job_new/recognize/components/job_settings_form.tsx @@ -57,6 +57,7 @@ export const JobSettingsForm: FC = ({ saveState, existingGroupIds, jobs, + jobGroups, }) => { const { from, to } = getTimeFilterRange(); const { currentIndexPattern: indexPattern } = useKibanaContext(); @@ -110,6 +111,10 @@ export const JobSettingsForm: FC = ({ onChange(formState); }, [formState]); + useEffect(() => { + setFormState({ jobGroups }); + }, [jobGroups]); + return ( <>