diff --git a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx index 7b85038aa6..efac0765ec 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx @@ -115,7 +115,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { let node if (propertyName === 'web3Deploy' || propertyName === 'name' || propertyName === 'Assembly') { node =
{ details[propertyName] }- } else if (propertyName === 'abi' || propertyName === 'metadata') { + } else if (details[propertyName] && (propertyName === 'abi' || propertyName === 'metadata')) { if (details[propertyName] !== '') { try { node =