Skip to content

Commit

Permalink
fix(core/pipeline): Fix rendering of execution graphs after tslint --…
Browse files Browse the repository at this point in the history
…fix (#5148)
  • Loading branch information
christopherthielen committed Apr 10, 2018
1 parent 4af3b70 commit 8826980
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class PipelineGraphService {
public static generateExecutionGraph(execution: IExecution, viewState: IExecutionViewState) {
const nodes: IPipelineGraphNode[] = [];
(execution.stageSummaries || []).forEach((stage: IExecutionStageSummary, idx: number) => {
const parentIds = (stage.requisiteStageRefIds || []).slice();
const node: IPipelineGraphNode = {
childLinks: [],
children: [],
Expand All @@ -77,7 +78,7 @@ export class PipelineGraphService {
labelComponent: stage.labelComponent,
masterStage: stage.masterStage,
name: stage.name,
parentIds: { ...[], ...(stage.requisiteStageRefIds || []) },
parentIds,
parentLinks: [],
parents: [],
stage,
Expand Down

0 comments on commit 8826980

Please sign in to comment.