Skip to content

Commit

Permalink
fix(core/pipeline): Fix rendering of pipeline graphs after tslint --f…
Browse files Browse the repository at this point in the history
…ix (#5147)
  • Loading branch information
christopherthielen committed Apr 10, 2018
1 parent fb2295d commit 4af3b70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class PipelineGraphService {

pipeline.stages.forEach(function(stage: IExecutionStageSummary, idx: number) {
const warnings = pipelineValidations.stages.find((e: any) => e.stage === stage);
const parentIds = (stage.requisiteStageRefIds || []).slice();
const node: IPipelineGraphNode = {
childLinks: [],
children: [],
Expand All @@ -124,7 +125,7 @@ export class PipelineGraphService {
isActive: viewState.stageIndex === idx && viewState.section === 'stage',
isHighlighted: false,
name: stage.name || '[new stage]',
parentIds: { ...[], ...(stage.requisiteStageRefIds || []) },
parentIds,
parentLinks: [],
parents: [],
root: false,
Expand Down

0 comments on commit 4af3b70

Please sign in to comment.