fix(api): сохранять неизвестные показатели BFD и OSPF
This commit is contained in:
1 parent
47dcd89b3c
commit
e3791f3496
13 files changed
+136
-44
No files matched your search
@@ -32,7 +32,7 @@ export interface OspfNeighborRow {
|
||||
state: OspfNeighborState
|
||||
cost: number | null
|
||||
uptime: string
|
||||
priority: number
|
||||
priority: number | null
|
||||
}
|
||||
|
||||
function stateClass(state: OspfNeighborRow["state"]) {
|
||||
@@ -177,7 +177,7 @@ function OspfNeighborsDataGrid({
|
||||
accessorKey: "priority",
|
||||
header: ({ column }) => <DataGridSortHeader column={column} title="Prio" />,
|
||||
cell: ({ row }) => (
|
||||
<span className="text-center font-mono block">{row.original.priority}</span>
|
||||
<span className="text-center font-mono block">{row.original.priority ?? "—"}</span>
|
||||
),
|
||||
meta: {
|
||||
headerTitle: "Prio",
|
||||
|
||||
Reference in new issue
Block a user