mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02: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}
|
condition={featureNames?.length < 3}
|
||||||
show={featureNames?.map((featureName: string) => (
|
show={featureNames?.map((featureName: string) => (
|
||||||
<StyledLink
|
<StyledLink
|
||||||
|
key={featureName}
|
||||||
title={featureName}
|
title={featureName}
|
||||||
to={`/projects/${project}/features/${featureName}`}
|
to={`/projects/${project}/features/${featureName}`}
|
||||||
>
|
>
|
||||||
@ -67,6 +68,7 @@ export const FeaturesCell: VFC<FeaturesCellProps> = ({ value, project }) => {
|
|||||||
<StyledTooltipContainer>
|
<StyledTooltipContainer>
|
||||||
{featureNames?.map((featureName: string) => (
|
{featureNames?.map((featureName: string) => (
|
||||||
<StyledTooltipLink
|
<StyledTooltipLink
|
||||||
|
key={featureName}
|
||||||
title={featureName}
|
title={featureName}
|
||||||
to={`/projects/${project}/features/${featureName}`}
|
to={`/projects/${project}/features/${featureName}`}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user