Skip to content

Commit a51042e

Browse files
committed
fix: show all instances in the list with their version
1 parent 54ce29a commit a51042e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/runCards/InstancesList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const InstancesList = ({ predicate }: InstancesListProps) => {
5959
>
6060
<ListItemText
6161
primary={instance.name}
62-
secondary={<LocalTime utcTimestamp={instance.launched} />}
62+
secondary={<><LocalTime utcTimestamp={instance.launched} /> - version: {instance.job_version}</>}
6363
slotProps={{ primary: { variant: "body1" } }}
6464
/>
6565
</ListItemButton>

src/components/runCards/JobCard/JobCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const JobCard = ({ projectId, job: jobs, disabled = false }: ApplicationC
6969
)}
7070
collapsed={
7171
<InstancesList
72-
predicate={(instance) => instance.job_id === job.id && instance.job_job === job.job}
72+
predicate={(instance) => instance.job_collection === job.collection && instance.job_job === job.job}
7373
/>
7474
}
7575
header={{ color: "primary.main", subtitle: job.name, avatar: job.job[0], title: job.job }}

0 commit comments

Comments
 (0)