diff --git a/src/ext/Dashboard/cells/common.tsx b/src/ext/Dashboard/cells/common.tsx index 8b836846..66f8c7b7 100644 --- a/src/ext/Dashboard/cells/common.tsx +++ b/src/ext/Dashboard/cells/common.tsx @@ -518,11 +518,12 @@ export function getEnvironmentStageSummary(build: PipelineReference, environment } environments = environments.sort((a,b) => a.id - b.id); - let stagesList = build.timeline.records.filter((x: any) => x.type === "Stage"); - // if(build.id === 240) { - // console.log(stagesList); - // } - + let stagesList : Array = []; + + if(build.timeline !== undefined && build.timeline.records !== undefined) { + stagesList = build.timeline.records.filter((x: any) => x.type === "Stage"); + } + let allDeplRecords = Array(); let allStages = Array(); for(let i=0;i