Skip to content

Commit

Permalink
[ML] Fixing job wizard with missing description (#105574) (#105718)
Browse files Browse the repository at this point in the history
Co-authored-by: James Gowdy <jgowdy@elastic.co>
  • Loading branch information
kibanamachine and jgowdyelastic committed Jul 15, 2021
1 parent 1ce67c9 commit 1a82942
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) {
Expand Down

0 comments on commit 1a82942

Please sign in to comment.