Skip to content

Commit

Permalink
[ML] jobGroups update
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Oct 10, 2019
1 parent 81c3081 commit 20e5be2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
saveState,
existingGroupIds,
jobs,
jobGroups,
}) => {
const { from, to } = getTimeFilterRange();
const { currentIndexPattern: indexPattern } = useKibanaContext();
Expand Down Expand Up @@ -110,6 +111,10 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
onChange(formState);
}, [formState]);

useEffect(() => {
setFormState({ jobGroups });
}, [jobGroups]);

return (
<>
<EuiForm>
Expand Down

0 comments on commit 20e5be2

Please sign in to comment.