Skip to content

Commit

Permalink
[Security Solution] Fix missing key error (#75576)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic authored Aug 21, 2020
1 parent 82e30f6 commit d013eb2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export const TagList = React.memo(
<EuiBadgeGroup>
{tags.length > 0 &&
!isEditTags &&
tags.map((tag, key) => (
<EuiBadge data-test-subj={`case-tag-${tag}`} color="hollow">
tags.map((tag) => (
<EuiBadge data-test-subj={`case-tag-${tag}`} color="hollow" key={tag}>
{tag}
</EuiBadge>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const getTagsLabelTitle = (action: CaseUserActions) => (
<EuiBadgeGroup>
{action.newValue != null &&
action.newValue.split(',').map((tag) => (
<EuiBadge data-test-subj={`ua-tag`} color="default">
<EuiBadge data-test-subj={`ua-tag`} color="default" key={tag}>
{tag}
</EuiBadge>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ const ExceptionEntriesComponent = ({
return (
<ValueBadgeGroup gutterSize="xs">
{values.map((value) => {
return <EuiBadge color="#DDD">{value}</EuiBadge>;
return (
<EuiBadge color="#DDD" key={value}>
{value}
</EuiBadge>
);
})}
</ValueBadgeGroup>
);
Expand Down

0 comments on commit d013eb2

Please sign in to comment.