Skip to content

Commit

Permalink
[ML] Fixing job wizard with missing description (#105574)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Jul 15, 2021
1 parent d43551c commit 63ba5cc
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 63ba5cc

Please sign in to comment.