empty string is array

pull/7/head
yann300 8 years ago
parent 6ec87b3c4a
commit ed72caaf6f
  1. 2
      src/ui/SolidityTypeFormatter.js

@ -34,7 +34,7 @@ function extractData (item, parent, key) {
} }
}) })
ret.isArray = true ret.isArray = true
ret.self = parent.isArray ? 'Array' : item.type ret.self = parent.isArray ? '' : item.type
} else if (item.type.indexOf('struct') === 0) { } else if (item.type.indexOf('struct') === 0) {
ret.children = Object.keys((item.value || {})).map(function (key) { ret.children = Object.keys((item.value || {})).map(function (key) {
return {key: key, value: item.value[key]} return {key: key, value: item.value[key]}

Loading…
Cancel
Save