Skip to content

Commit

Permalink
fix(issues): Supply unique keys to grouping component (#76620)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Aug 27, 2024
1 parent 5121c5b commit 94a09ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ type Props = {
function GroupingComponentChildren({component, showNonContributing}: Props) {
return (
<Fragment>
{(component.values as EventGroupComponent[])
{component.values
.filter(value => groupingComponentFilter(value, showNonContributing))
.map(value => (
<GroupingComponentListItem key={value.id}>
<GroupingComponentListItem key={typeof value === 'object' ? value.id : value}>
{typeof value === 'object' ? (
<GroupingComponent
component={value}
Expand Down

0 comments on commit 94a09ff

Please sign in to comment.