Fix keyerror on props

master
Rohan Vazarkar 2018-03-07 16:27:26 -05:00
parent 0f0a0aec07
commit 3ef505a67b
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ export default class componentName extends Component {
let val = this.convertToDisplayProp(key);
if (val !== null){
l.push(<dt key={key}>{value}</dt>);
l.push(<dd key={val}>{val}</dd>);
l.push(<dt key={key + 'a'}>{value}</dt>);
l.push(<dd key={key + 'b'}>{val}</dd>);
}
}.bind(this));