diff --git a/app/platform/fabric/Proxy.ts b/app/platform/fabric/Proxy.ts index 6f3022d23..65505a931 100644 --- a/app/platform/fabric/Proxy.ts +++ b/app/platform/fabric/Proxy.ts @@ -137,12 +137,14 @@ export class Proxy { node.ledger_height_unsigned = peer.ledgerHeight.unsigned; } } - } else { - // Sometime 'peers_by_org' property is not included in discover result + } + // Sometime 'peers_by_org' property is not included in discover result + if(typeof node.ledger_height_low === 'undefined') node.ledger_height_low = '-'; + if(typeof node.ledger_height_high === 'undefined') node.ledger_height_high = '-'; + if(typeof node.ledger_height_unsigned === 'undefined') node.ledger_height_unsigned = '-'; - } peers.push(node); } else if (node.peer_type === 'ORDERER') { node.status = 'DOWN';