Skip to content

Commit

Permalink
fixing issuse with job without group list
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jan 13, 2021
1 parent 6c96c66 commit 4b2ec25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/server/models/job_service/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export function jobsProvider(client: IScopedClusterClient, mlClient: MlClient) {
job_id: jobId,
});

const isGroup = body.jobs.some((j) => j.groups.includes(jobId));
const isGroup = body.jobs.some((j) => j.groups !== undefined && j.groups.includes(jobId));
results[jobId] = { exists: body.count > 0, isGroup };
} catch (e) {
// if a non-wildcarded job id is supplied, the get jobs endpoint will 404
Expand Down

0 comments on commit 4b2ec25

Please sign in to comment.