Skip to content

Commit

Permalink
Fixing no runs list rendering. (#2935)
Browse files Browse the repository at this point in the history
Signed-off-by: phixMe <[email protected]>
  • Loading branch information
phixMe authored Oct 18, 2024
1 parent 7cf1f6a commit d9ec368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/routes/dashboard/JobRunItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const JobRunItem: React.FC<Props> = ({ job }) => {
<MqText subdued>LAST 10 RUNS</MqText>
<Box display={'flex'} height={40} alignItems={'flex-end'}>
{/*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) => (
<Box
key={i}
bgcolor={'divider'}
Expand Down

0 comments on commit d9ec368

Please sign in to comment.