Skip to content

Commit 11f50be

Browse files
committed
fix(components): do not pass children as a prop
1 parent 8518473 commit 11f50be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/ConditionalFilter/ConditionalFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const ConditionalFilter: React.FunctionComponent<ConditionalFilterProps> = ({
155155
const C = typeMapper.custom;
156156
// make sure no invalid props are passed to the Fragment element which is mapped to the custom component
157157
const { key, children } = activeItem.filterValues;
158-
return <C key={key} children={children} />;
158+
return <C key={key}>{children}</C>;
159159
} else {
160160
throw new Error(`Invalid conditional filter component type! Expected one of ${Object.keys(conditionalFilterType)}, got ${activeItem.type}.`);
161161
}

0 commit comments

Comments
 (0)