From 834083f63b832e52617103a846b6cc77763ca8e8 Mon Sep 17 00:00:00 2001 From: Louis Turmel <46848645+lturmel@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:47:51 +0200 Subject: [PATCH] fix (#185) --- src/ext/Dashboard/cells/common.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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