diff --git a/x-pack/plugins/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/bucket_span_estimator/bucket_span_estimator.tsx b/x-pack/plugins/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/bucket_span_estimator/bucket_span_estimator.tsx index 8018c881e3b2eb..bd08169f0f288d 100644 --- a/x-pack/plugins/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/bucket_span_estimator/bucket_span_estimator.tsx +++ b/x-pack/plugins/ml/public/application/jobs/new_job/pages/components/pick_fields_step/components/bucket_span_estimator/bucket_span_estimator.tsx @@ -19,7 +19,7 @@ interface Props { } export const BucketSpanEstimator: FC = ({ setEstimating }) => { - const { jobCreator, jobCreatorUpdate } = useContext(JobCreatorContext); + const { jobCreator, jobCreatorUpdated } = useContext(JobCreatorContext); const { status, estimateBucketSpan } = useEstimateBucketSpan(); const [noDetectors, setNoDetectors] = useState(jobCreator.detectors.length === 0); const [isUsingMlCategory, setIsUsingMlCategory] = useState(checkIsUsingMlCategory()); @@ -33,7 +33,7 @@ export const BucketSpanEstimator: FC = ({ setEstimating }) => { setNoDetectors(jobCreator.detectors.length === 0); setIsUsingMlCategory(checkIsUsingMlCategory()); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [jobCreatorUpdate]); + }, [jobCreatorUpdated]); function checkIsUsingMlCategory() { return (