Skip to content

Commit

Permalink
fix(pipelineGraph): Handling exception when requisiteStageRefIds is n…
Browse files Browse the repository at this point in the history
…ot defined (#10086)

(cherry picked from commit 4e1635d)
  • Loading branch information
christosarvanitis authored and mergify[bot] committed Apr 25, 2024
1 parent f100273 commit bd3c527
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ export class PipelineConfigService {
private static groupStagesByRequisiteStageRefIds(pipeline: IPipeline) {
return pipeline.stages.reduce((acc, obj) => {
const parent = obj['refId'];
if (obj['requisiteStageRefIds'] === undefined) {
obj['requisiteStageRefIds'] = [];
}
obj.requisiteStageRefIds.forEach((child) => {
const values = acc.get(child);
if (values && values.length) {
Expand Down

0 comments on commit bd3c527

Please sign in to comment.