diff --git a/packages/orchestration/src/utils/registry.js b/packages/orchestration/src/utils/registry.js index b065038c352d..25789864729f 100644 --- a/packages/orchestration/src/utils/registry.js +++ b/packages/orchestration/src/utils/registry.js @@ -118,8 +118,9 @@ export const convertChainInfo = async registry => { const connections = Object.fromEntries( ibcData .map(datum => toConnectionEntry(datum, name, chainInfo)) + .filter(entry => entry.length > 0) // sort alphabetically for consistency - .sort(([a], [b]) => (a && b ? a.localeCompare(b) : 0)), + .sort(([a], [b]) => a.localeCompare(b)), ); chainInfo[name] = { ...chainInfo[name], connections }; }