Fix event params decoding when no names for parameters #5409 (#5567)

This commit is contained in:
Nicolas Gotchac
2017-05-09 12:56:08 +02:00
committed by Jaco Greeff
parent 1288b4b28f
commit c5116e5049
3 changed files with 12 additions and 6 deletions

View File

@@ -112,11 +112,16 @@ export default class Event extends Component {
}
renderParam (name, param) {
// Don't add a label id the name is an index key (ie. a Number)
const label = parseInt(name).toString() === name.toString()
? undefined
: name;
return (
<TypedInput
allowCopy
className={ styles.input }
label={ name }
label={ label }
param={ param.type }
readOnly
value={ param.value }