do not show undefined property in details

pull/5370/head
lianahus 3 years ago
parent 1b1dc27d63
commit 4be7550dcb
  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