Skip to content

Commit

Permalink
[ML] Fixing job wizard with missing description
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jul 14, 2021
1 parent 1fe4135 commit df868c0
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 df868c0

Please sign in to comment.