Skip to content

Commit

Permalink
fix parentlink key
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Dec 19, 2024
1 parent 42bd821 commit 38888b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/FeaturePanel/ParentLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export const ParentLinkContent = () => {
{hasMoreParents ? (
<Arrow>
{feature.parentFeatures?.map((parentFeature, i) => (
<>
<React.Fragment key={getReactKey(parentFeature)}>
<Link href={getOsmappLink(parentFeature)} color="secondary">
{getLabel(parentFeature)}
</Link>
{feature.parentFeatures.length > i + 1 && <Comma>,</Comma>}
</>
</React.Fragment>
))}
</Arrow>
) : (
Expand Down

0 comments on commit 38888b0

Please sign in to comment.