From 5213d55597fbc41e1248571a067eb5d448cc5b88 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Mon, 27 Jan 2020 16:22:13 +0000 Subject: [PATCH] [ML] Reseting categorization validation if category field is cleared --- .../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; } }