diff --git a/src/pages/networks/NetworkDetailsPage.tsx b/src/pages/networks/NetworkDetailsPage.tsx index 409999f4..20f8ccdf 100644 --- a/src/pages/networks/NetworkDetailsPage.tsx +++ b/src/pages/networks/NetworkDetailsPage.tsx @@ -3791,7 +3791,7 @@ export default function NetworkDetailsPage(props: PageProps) { const tabs: TabsProps['items'] = [ { key: 'hosts', - label: `Nodes (${networkHosts.length})`, + label: `Nodes (${networkNodes.length})`, children: network && !isRefreshingNetwork ? getHostsContent() : , }, { diff --git a/src/pages/networks/NetworksPage.tsx b/src/pages/networks/NetworksPage.tsx index 127ccb7c..b9d9b58e 100644 --- a/src/pages/networks/NetworksPage.tsx +++ b/src/pages/networks/NetworksPage.tsx @@ -115,16 +115,18 @@ export default function NetworksPage(props: PageProps) { ), }, { - title: 'Hosts Count', + title: 'Nodes Count', dataIndex: 'hosts', - // render(_, network) { - // const nodeCount = store.nodes?.filter((node) => node.network === network.netid).length ?? 0; - // return ( - //
ev.stopPropagation()}> - // {nodeCount} - //
- // ); - // }, + render(_, network) { + const nodeCount = + store.nodes?.filter((node) => node.network === network.netid || node.static_node?.network === network.netid) + .length ?? 0; + return ( +
ev.stopPropagation()}> + {nodeCount} +
+ ); + }, }, { title: 'Network Last Modified',