Skip to content
Snippets Groups Projects
Commit 03f5a2d9 authored by Reinoud Bokhorst's avatar Reinoud Bokhorst
Browse files

OSB-29: fixed keys

parent e0c60fee
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
...@@ -80,7 +80,7 @@ class StationTestBadgeC extends Component { ...@@ -80,7 +80,7 @@ class StationTestBadgeC extends Component {
let errors = Object.keys(comp_sum).sort(); let errors = Object.keys(comp_sum).sort();
rows.push(<tr key={component}> rows.push(<tr key={component}>
<th>{component}</th> <th>{component}</th>
<td>{errors.map((id, e) => <Badge key={id} count={comp_sum[e]} label={e}/>)}</td> <td>{errors.map((e, id) => <Badge key={id} count={comp_sum[e]} label={e}/>)}</td>
</tr>); </tr>);
}); });
...@@ -167,7 +167,7 @@ class RTSMBadge extends Component { ...@@ -167,7 +167,7 @@ class RTSMBadge extends Component {
let badges = ""; let badges = "";
let errors = Object.keys(summary).sort(); let errors = Object.keys(summary).sort();
badges = errors.map((i, e) => <Badge key={i} count={summary[e]} label={e}/>); badges = errors.map((e, i) => <Badge key={i} count={summary[e]} label={e}/>);
return (<Popover placement="auto" isOpen={this.state.popoverOpen} target={this.id} toggle={this.togglePopover}> return (<Popover placement="auto" isOpen={this.state.popoverOpen} target={this.id} toggle={this.togglePopover}>
<PopoverHeader> <PopoverHeader>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment