1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: add keys to the features cell component (#5978)

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.
This commit is contained in:
Thomas Heartman 2024-01-22 11:57:38 +04:00 committed by GitHub
parent f7c8180145
commit edf3cad092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}`}
>
@ -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}`}
>