diff --git a/x-pack/plugins/ml/public/application/jobs/new_job/common/job_creator/job_creator.ts b/x-pack/plugins/ml/public/application/jobs/new_job/common/job_creator/job_creator.ts index 45e7247f0bd85..476ba381dd92e 100644 --- a/x-pack/plugins/ml/public/application/jobs/new_job/common/job_creator/job_creator.ts +++ b/x-pack/plugins/ml/public/application/jobs/new_job/common/job_creator/job_creator.ts @@ -222,12 +222,11 @@ export class JobCreator { } public get description(): string { - return this._job_config.description; + return this._job_config.description ?? ''; } public get groups(): string[] { - // @ts-expect-error @elastic-elasticsearch FIXME groups is optional - return this._job_config.groups; + return this._job_config.groups ?? []; } public set groups(groups: string[]) {