From 1f5ee42fb0293f1ed22aa76a3409f3ccd404208c Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Tue, 28 May 2019 11:58:43 -0400 Subject: [PATCH] return false for each jobId if it does not exist (#37116) --- x-pack/plugins/ml/server/models/job_service/jobs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugins/ml/server/models/job_service/jobs.js b/x-pack/plugins/ml/server/models/job_service/jobs.js index a6ee1cd913f7a2..84c7c1550ef6d8 100644 --- a/x-pack/plugins/ml/server/models/job_service/jobs.js +++ b/x-pack/plugins/ml/server/models/job_service/jobs.js @@ -354,6 +354,10 @@ export function jobsProvider(callWithRequest) { const exists = allJobIds.some(existsJobId => regexp.test(existsJobId)); results[jobId] = exists; }); + } else { + jobIds.forEach((jobId) => { + results[jobId] = false; + }); } return results;