Skip to content

Commit

Permalink
[Security Solution][Session view] - fix EuiButton key not unique thro…
Browse files Browse the repository at this point in the history
…wing error
  • Loading branch information
PhilippeOberti committed Nov 8, 2024
1 parent 619f330 commit a883c7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export const AlertButton = ({
{alertsCount > 1 ? ALERTS : ALERT}
{alertsCount > 1 &&
(alertsCount > MAX_ALERT_COUNT ? ` (${MAX_ALERT_COUNT}+)` : ` (${alertsCount})`)}
{alertIcons?.map((icon: string) => (
<EuiIcon className="alertIcon" key={icon} size="s" type={icon} />
{alertIcons?.map((icon: string, index: number) => (
<EuiIcon className="alertIcon" key={`${icon}-${index}`} size="s" type={icon} />
))}
<EuiIcon css={buttonArrow} size="s" type="arrowDown" />
</EuiButton>
Expand Down

0 comments on commit a883c7c

Please sign in to comment.