From 1fa6686b7f3cff5d231d002da3bc4910335bfdcf Mon Sep 17 00:00:00 2001 From: lianahus Date: Fri, 3 Sep 2021 12:38:43 +0200 Subject: [PATCH] do not show undefined property in details --- libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =