From 03f5a2d96dca99257afc77b9c93ca0de967043e7 Mon Sep 17 00:00:00 2001
From: rbokhorst <rbokhorst@astron.nl>
Date: Wed, 24 Oct 2018 14:43:22 +0000
Subject: [PATCH] OSB-29: fixed keys

---
 .../maintenancedb_view/src/components/StationOverview.js      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js
index c7b57b518d5..6eb2da008f8 100644
--- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js
+++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationOverview.js
@@ -80,7 +80,7 @@ class StationTestBadgeC extends Component {
             let errors = Object.keys(comp_sum).sort();
             rows.push(<tr key={component}>
                 <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>);
         });
 
@@ -167,7 +167,7 @@ class RTSMBadge extends Component {
         let badges = "";
 
         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}>
             <PopoverHeader>
-- 
GitLab