mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-21 08:57:48 +02: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,
|
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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user