diff --git a/ui/src/components/JobsTable.tsx b/ui/src/components/JobsTable.tsx index ae3c9eb5..315ecd63 100644 --- a/ui/src/components/JobsTable.tsx +++ b/ui/src/components/JobsTable.tsx @@ -102,7 +102,7 @@ export default function JobsTable({ onlyActive = false }: JobsTableProps) { jd['Idle'] = { name: 'Idle', jobs: [] }; jobs.forEach(job => { const gpu = gpuList.find(gpu => job.gpu_ids?.split(',').includes(gpu.index.toString())) as GpuInfo; - const key = `${gpu.index}`; + const key = `${gpu?.index || '0'}`; if (['queued', 'running', 'stopping'].includes(job.status) && key in jd) { jd[key].jobs.push(job); } else {