Skip to content

Commit

Permalink
fix: add keys to the features cell component (#5978)
Browse files Browse the repository at this point in the history
This PR adds the `key` property to the features cell component where it
renders lists of flags. This fixes a few rendering errors we've been
getting in the console.
  • Loading branch information
thomasheartman committed Jan 22, 2024
1 parent f7c8180 commit edf3cad
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -52,6 +52,7 @@ export const FeaturesCell: VFC<FeaturesCellProps> = ({ value, project }) => {
condition={featureNames?.length < 3}
show={featureNames?.map((featureName: string) => (
<StyledLink
key={featureName}
title={featureName}
to={`/projects/${project}/features/${featureName}`}
>
Expand All @@ -67,6 +68,7 @@ export const FeaturesCell: VFC<FeaturesCellProps> = ({ value, project }) => {
<StyledTooltipContainer>
{featureNames?.map((featureName: string) => (
<StyledTooltipLink
key={featureName}
title={featureName}
to={`/projects/${project}/features/${featureName}`}
>
Expand Down

0 comments on commit edf3cad

Please sign in to comment.