Skip to content
Snippets Groups Projects
Commit f3c1aacb authored by Janne Alatalo's avatar Janne Alatalo :neutral_face:
Browse files

Fix react unique keys console warning

parent 9404b400
No related branches found
No related tags found
No related merge requests found
Pipeline #744962 passed
...@@ -135,8 +135,8 @@ class PointMap extends Component { ...@@ -135,8 +135,8 @@ class PointMap extends Component {
<Typography gutterBottom variant="headline" component="h3"> <Typography gutterBottom variant="headline" component="h3">
{name} {name}
</Typography> </Typography>
{ data.map(d => ( { data.map((d, idx) => (
<div style={styles.val_div}> <div key={idx} style={styles.val_div}>
<Typography variant="caption"> <Typography variant="caption">
{d.h} {d.h}
</Typography> </Typography>
......
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