ui: hide gpu indicator for host without gpu (#2279)

This commit is contained in:
Steven Honson
2026-09-01 18:36:09 -04:00
committed by GitHub
parent 917d069ab3
commit b670224ed8
@@ -196,7 +196,13 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef<Syste
accessorFn: ({ info }) => info.g || undefined,
id: "gpu",
name: () => "GPU",
cell: TableCellWithMeter,
cell: (info) => {
const val = info.getValue() as number | undefined
if (val === undefined) {
return null
}
return TableCellWithMeter(info)
},
Icon: GpuIcon,
header: sortableHeader,
},