mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-17 05:24:31 +00:00
ui: hide gpu indicator for host without gpu (#2279)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user