Skip to content

Commit

Permalink
Fix key missing in Headers Lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcth committed Jun 4, 2024
1 parent b75ae86 commit 45e4059
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/map/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ const defaultSearchOptions = await getDefaultSearchOptions(OPTIONS);

const groundList = Array.from(mapElements)
.filter(([, value]) => value.type == "ground")
.map(([key, _]) => {
return <LayerLabel value={key} label={key} />;
.map(([key, _], index) => {
return <LayerLabel value={key} label={key} key={index} />;
});

const communicationList = Array.from(mapElements)
.filter(([, value]) => value.type == "communication")
.map(([key, _]) => {
return <LayerLabel value={key} label={key} />;
.map(([key, _], index) => {
return <LayerLabel value={key} label={key} key={index} />;
});

const temperature = Array.from(mapElements)
.filter(([, value]) => value.type == "data")
.map(([key, _]) => {
return <LayerLabel value={key} label={key} />;
.map(([key, _], index) => {
return <LayerLabel value={key} label={key} key={index} />;
});

// @ts-ignore
Expand Down

0 comments on commit 45e4059

Please sign in to comment.