From f8ed6ce7053e4e04f5a425f6624adb2081471bc3 Mon Sep 17 00:00:00 2001 From: henrygd Date: Thu, 13 Nov 2025 16:25:21 -0500 Subject: [PATCH] refactor: fix nan when net value is undefined in systems table --- .../src/components/systems-table/systems-table-columns.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 a732e7b5..45e9d1c1 100644 --- a/internal/site/src/components/systems-table/systems-table-columns.tsx +++ b/internal/site/src/components/systems-table/systems-table-columns.tsx @@ -58,7 +58,6 @@ import { DropdownMenuTrigger, } from "../ui/dropdown-menu" import { EthernetIcon, GpuIcon, HourglassIcon, ThermometerIcon, WebSocketIcon } from "../ui/icons" -import { Separator } from "../ui/separator" const STATUS_COLORS = { [SystemStatus.Up]: "bg-green-500", @@ -231,10 +230,10 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef - {decimalString(value, value >= 100 ? 1 : 2)} {unit} + {decimalString(value , value >= 100 ? 1 : 2)} {unit} ) },