|
@@ -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}
|