Skip to content

Commit

Permalink
fix executionParamsList
Browse files Browse the repository at this point in the history
  • Loading branch information
dliu27 committed Dec 19, 2024
1 parent e00c753 commit 3a33c37
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ export function useLaunchMultipleRunsWithTelemetry() {
(params) => params.selector.jobName || params.selector.pipelineName,
);

if (
(executionParamsList.length === 1 && jobNames.includes(undefined)) ||
jobNames.includes(null)
) {
// if only executing one job, and jobName isn't defined, fallback to jobName from sensor/schedule
if (executionParamsList.length === 1 && !executionParamsList[0]?.selector?.jobName) {
jobNames = [jobName];
executionParamsList[0]!.selector.jobName = jobName;
}

if (
Expand Down

0 comments on commit 3a33c37

Please sign in to comment.