Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

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

Steven Honsonb670224ed830
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 49e0000b7..355ed53a6 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<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,
},