From b670224ed830ccdc73c1b7e78c366c3cfc253319 Mon Sep 17 00:00:00 2001 From: Steven Honson Date: Wed, 2 Sep 2026 08:36:09 +1000 Subject: [PATCH] ui: hide gpu indicator for host without gpu (#2279) --- .../components/systems-table/systems-table-columns.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/site/src/components/systems-table/systems-table-columns.tsx b/internal/site/src/components/systems-table/systems-table-columns.tsx index 49e0000b..355ed53a 100644 --- a/internal/site/src/components/systems-table/systems-table-columns.tsx +++ b/internal/site/src/components/systems-table/systems-table-columns.tsx @@ -196,7 +196,13 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef 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, },