Merge pull request #1557 from ethereum/yulCD

do not show undefined property in details
pull/5370/head
Rob 3 years ago committed by GitHub
commit 0bf4098fa9
  1. 2
      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 = <pre>{ details[propertyName] }</pre>
} else if (propertyName === 'abi' || propertyName === 'metadata') {
} else if (details[propertyName] && (propertyName === 'abi' || propertyName === 'metadata')) {
if (details[propertyName] !== '') {
try {
node = <div>

Loading…
Cancel
Save