From d9ec368c0f5bb574baf4aceab84469dd0e9cfea1 Mon Sep 17 00:00:00 2001 From: Peter Hicks Date: Fri, 18 Oct 2024 14:20:22 -0700 Subject: [PATCH] Fixing no runs list rendering. (#2935) Signed-off-by: phixMe --- web/src/routes/dashboard/JobRunItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/dashboard/JobRunItem.tsx b/web/src/routes/dashboard/JobRunItem.tsx index b4f3155bb5..43e74308eb 100644 --- a/web/src/routes/dashboard/JobRunItem.tsx +++ b/web/src/routes/dashboard/JobRunItem.tsx @@ -61,7 +61,7 @@ const JobRunItem: React.FC = ({ job }) => { LAST 10 RUNS {/*pad 10 - latestRuns length with a small grey bar*/} - {Array.from({ length: 10 - job.latestRuns?.length || 0 }, (_, i) => ( + {Array.from({ length: 10 - (job.latestRuns?.length || 0) }, (_, i) => (