Skip to content

Commit

Permalink
fix: add key to Fragment in map
Browse files Browse the repository at this point in the history
  • Loading branch information
lightlii committed Aug 22, 2023
1 parent 879bfb3 commit 70e3726
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export const BackgroundMapSelector = ({ active, dismiss }) => {
.map(({ id, url, name }) => {
const isSelected = mapStyle === id
return (
<>
<div className={classes.mapCardWrapper} key={id}>
<React.Fragment key={id}>
<div className={classes.mapCardWrapper}>
<MapPreviewCard
onClick={() => {
if (isSelected) return
Expand All @@ -100,7 +100,7 @@ export const BackgroundMapSelector = ({ active, dismiss }) => {
title={name}
/>
</div>
</>
</React.Fragment>
)
})}
</Box>
Expand Down

0 comments on commit 70e3726

Please sign in to comment.