fix(ui): не подставлять выдуманный cost соседа OSPF
This commit is contained in:
1 parent
3dc25628af
commit
748a3c00ad
5 files changed
+18
-8
No files matched your search
@@ -30,7 +30,7 @@ export interface OspfNeighborRow {
|
||||
remoteRouterId: string
|
||||
area: string
|
||||
state: OspfNeighborState
|
||||
cost: number
|
||||
cost: number | null
|
||||
uptime: string
|
||||
priority: number
|
||||
}
|
||||
@@ -149,7 +149,7 @@ function OspfNeighborsDataGrid({
|
||||
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",
|
||||
|
||||
Reference in new issue
Block a user