aboutsummaryrefslogtreecommitdiff
path: root/maps-frontend/src/components/HubList.js
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-3.lan>2021-04-16 17:36:25 -0400
committerMichael Foiani <sotech117@michaels-mbp-3.lan>2021-04-16 17:36:25 -0400
commit5f1c8ad8dd2944d6791971ba7fc5a4da97a9e9ac (patch)
tree707e3e477104c246cf75110cbc7dc63f18c3fce7 /maps-frontend/src/components/HubList.js
parenta2dc033f7d80ec4599e6c0f7bb1ef5753d8799fa (diff)
Got the canvas to show. Looking pretty good
Diffstat (limited to 'maps-frontend/src/components/HubList.js')
-rw-r--r--maps-frontend/src/components/HubList.js4
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);