From b85a1a03af367ea98972e827178983edbf2c1396 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Tue, 28 Jan 2020 09:44:59 +0000 Subject: [PATCH] [ML] Reseting categorization validation if category field is cleared (#56029) --- .../new_job/common/job_creator/categorization_job_creator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/legacy/plugins/ml/public/application/jobs/new_job/common/job_creator/categorization_job_creator.ts b/x-pack/legacy/plugins/ml/public/application/jobs/new_job/common/job_creator/categorization_job_creator.ts index 0ff0ffb6f3bb3..eb2f0f4e368a3 100644 --- a/x-pack/legacy/plugins/ml/public/application/jobs/new_job/common/job_creator/categorization_job_creator.ts +++ b/x-pack/legacy/plugins/ml/public/application/jobs/new_job/common/job_creator/categorization_job_creator.ts @@ -100,6 +100,7 @@ export class CategorizationJobCreator extends JobCreator { delete this._job_config.analysis_config.categorization_field_name; this._categoryFieldExamples = []; this._validationChecks = []; + this._overallValidStatus = CATEGORY_EXAMPLES_VALIDATION_STATUS.INVALID; } }