diff --git a/src/components/FormItem/NetworkSelect/index.jsx b/src/components/FormItem/NetworkSelect/index.jsx index d2444b80..155762e5 100644 --- a/src/components/FormItem/NetworkSelect/index.jsx +++ b/src/components/FormItem/NetworkSelect/index.jsx @@ -299,8 +299,15 @@ export default class NetworkSelect extends React.Component { if (!item) { return null; } + const totalAllocationPools = []; + subnets.forEach((sub) => { + const { allocation_pools: pools = [] } = sub; + pools.forEach((pool) => { + totalAllocationPools.push(pool); + }); + }); const { allocation_pools: pools } = item; - const details = pools.map((pool, index) => ( + const details = totalAllocationPools.map((pool, index) => ( {pool.start}--{pool.end} @@ -332,7 +339,7 @@ export default class NetworkSelect extends React.Component { ); return (