diff options
Diffstat (limited to 'maps-frontend/src/components/HubList.js')
| -rw-r--r-- | maps-frontend/src/components/HubList.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/maps-frontend/src/components/HubList.js b/maps-frontend/src/components/HubList.js index 41cf07a..af6c9b0 100644 --- a/maps-frontend/src/components/HubList.js +++ b/maps-frontend/src/components/HubList.js @@ -19,11 +19,9 @@ function HubList(props) { const updateHubItems = () => { // sort and create the elemnts let hubs = []; - console.log(props.data); const sorted = props.data.sort((a, b) => b.suspicionScore - a.suspicionScore); - console.log(sorted); sorted.forEach(hub => hubs.push( - <Hub name={hub.name} value={hub.suspicionScore}></Hub> + <Hub key={hub.id} name={hub.name} value={hub.suspicionScore}></Hub> )); setHubItems(hubs); |
