diff --git a/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/edit_job_flyout.js b/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/edit_job_flyout.js index 9e2b60e29c337..d256c8f0868c3 100644 --- a/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/edit_job_flyout.js +++ b/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/edit_job_flyout.js @@ -131,11 +131,13 @@ export class EditJobFlyout extends Component { jobGroupsValidationError = validateGroupNames(jobDetails.jobGroups).message; } + const valid = (jobModelMemoryLimitValidationError === '' && jobGroupsValidationError === ''); + this.setState({ ...jobDetails, jobModelMemoryLimitValidationError, jobGroupsValidationError, - valid: (jobModelMemoryLimitValidationError === '' && jobGroupsValidationError === '') + valid, }); } diff --git a/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/validate_job.js b/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/validate_job.js index 138690d0a9d83..3aec2c395cec5 100644 --- a/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/validate_job.js +++ b/x-pack/plugins/ml/public/jobs/jobs_list_new/components/edit_job_flyout/validate_job.js @@ -21,7 +21,6 @@ export function validateModelMemoryLimit(mml) { } }; const validationResults = validateModelMemoryLimitUtils(tempJob, limits); - const { valid } = validationResults; const modelMemoryLimit = {