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

This commit is contained in:
Steven Honson
2026-09-02 08:36:09 +10:00
committed by GitHub
parent 917d069ab3
commit b670224ed8

View File

@@ -196,7 +196,13 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef<Syste
accessorFn: ({ info }) => info.g || undefined, accessorFn: ({ info }) => info.g || undefined,
id: "gpu", id: "gpu",
name: () => "GPU", name: () => "GPU",
cell: TableCellWithMeter, cell: (info) => {
const val = info.getValue() as number | undefined
if (val === undefined) {
return null
}
return TableCellWithMeter(info)
},
Icon: GpuIcon, Icon: GpuIcon,
header: sortableHeader, header: sortableHeader,
}, },