Skip to content

Commit

Permalink
Store goalSetIds instead of goalSet to break loop
Browse files Browse the repository at this point in the history
[changelog:fixed]
  • Loading branch information
cdupuis committed Jun 3, 2021
1 parent fcf5082 commit aac1d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pack/goal-state/cancelGoals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function cancelGoalSetsCommand(sdm: SoftwareDeliveryMachine): CommandHand
let pgs = await pendingGoalSets(ci.context, sdm.configuration.name);
while (pgs.length > 0) {
for (const pg of pgs) {
canceledGoalSets.push(pgs);
canceledGoalSets.push(pg.goalSetId);
await cancelGoalSet(pg.goalSetId, ci.context);
}
pgs = (await pendingGoalSets(ci.context, sdm.configuration.name))
Expand Down

0 comments on commit aac1d8c

Please sign in to comment.