fix(api): показывать подтверждённые метрики OSPF

This commit is contained in:
Denozordec committed 2026-09-30 19:49:47 +07:00
1 parent e3791f3496
commit af05ad5cda
13 files changed
+120 -55

No files matched your search

@@ -23,7 +23,7 @@ export interface OspfRouteRow {
dataUnknown?: boolean
destination: string
type: "O" | "O IA" | "O E1" | "O E2"
cost: number
cost: number | null
nextHop: string
via: string
serverId: string
@@ -79,7 +79,7 @@ function OspfRoutesDataGrid({ routes }: OspfRoutesDataGridProps) {
accessorKey: "cost",
header: ({ column }) => <DataGridSortHeader column={column} title="Cost" />,
cell: ({ row }) => (
<span className="font-mono tabular-nums text-center block">{row.original.cost}</span>
<span className="font-mono tabular-nums text-center block">{row.original.cost ?? "—"}</span>
),
meta: {
headerTitle: "Cost",