From cd607c49022a5032b20fb1ef85433040a3f03e8b Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Wed, 19 Nov 2025 08:28:48 -0700 Subject: [PATCH] Fix a bug that can happen if you remove a gpu from your machine. --- ui/src/components/JobsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {