From a8b102bb0fd424b888e461f59fbc82d1023451b3 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Wed, 11 Sep 2019 10:17:59 +0100 Subject: [PATCH] removing if statement --- .../jobs/new_job_new/common/job_creator/util/general.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x-pack/legacy/plugins/ml/public/jobs/new_job_new/common/job_creator/util/general.ts b/x-pack/legacy/plugins/ml/public/jobs/new_job_new/common/job_creator/util/general.ts index 2f79f8d8f644c..91cf72d8f9259 100644 --- a/x-pack/legacy/plugins/ml/public/jobs/new_job_new/common/job_creator/util/general.ts +++ b/x-pack/legacy/plugins/ml/public/jobs/new_job_new/common/job_creator/util/general.ts @@ -140,10 +140,8 @@ function stashCombinedJob( } else { mlJobService.tempJobCloningObjects.job = combinedJob; - if (skipTimeRangeStep === true) { - // skip over the time picker step of the wizard - mlJobService.tempJobCloningObjects.skipTimeRangeStep = true; - } + // skip over the time picker step of the wizard + mlJobService.tempJobCloningObjects.skipTimeRangeStep = skipTimeRangeStep; if (includeTimeRange === true) { // auto select the start and end dates of the time picker