Skip to content

Commit

Permalink
[ML] Update to ternary check
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Feb 4, 2021
1 parent 658bccc commit af70d76
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,7 @@ function stashJobForCloning(
) {
mlJobService.tempJobCloningObjects.job = jobCreator.jobConfig;
mlJobService.tempJobCloningObjects.datafeed = jobCreator.datafeedConfig;
if (jobCreator.createdBy === null) {
mlJobService.tempJobCloningObjects.createdBy = undefined;
} else {
mlJobService.tempJobCloningObjects.createdBy = jobCreator.createdBy;
}
mlJobService.tempJobCloningObjects.createdBy = jobCreator.createdBy ?? undefined;

// skip over the time picker step of the wizard
mlJobService.tempJobCloningObjects.skipTimeRangeStep = skipTimeRangeStep;
Expand Down

0 comments on commit af70d76

Please sign in to comment.