diff --git a/src/components/JobList/index.tsx b/src/components/JobList/index.tsx index f9ed017..8fba7d1 100644 --- a/src/components/JobList/index.tsx +++ b/src/components/JobList/index.tsx @@ -147,7 +147,7 @@ const columns: MRT_ColumnDef[] = [ header: "nodes", accessorKey: "nodes", accessorFn: (row: Job) => { - return Object.keys(row.targets || {}).length || 0; + return Object.keys(row.targets || row.roles || {}).length || 0; }, size: 85, }, diff --git a/src/lib/paddles.d.ts b/src/lib/paddles.d.ts index 35ce4d0..381de57 100644 --- a/src/lib/paddles.d.ts +++ b/src/lib/paddles.d.ts @@ -39,10 +39,13 @@ export type Job = { status: JobStatus; failure_reason: string; targets: Node[]; + roles: NodeRoles[]; os_type: string; os_version: string; }; +export type NodeRoles = string[]; + export type RunResults = { queued: number; pass: number;