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) (#10089)

(cherry picked from commit 4e1635d)

Co-authored-by: Christos Arvanitis <[email protected]>
  • Loading branch information
mergify[bot] and christosarvanitis committed Apr 25, 2024
1 parent f100273 commit 706d7ec
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 706d7ec

Please sign in to comment.