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:
parent
f7c8180145
commit
edf3cad092
@ -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}`}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user