We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 072b349 commit 5d4eb48Copy full SHA for 5d4eb48
redisinsight/ui/src/components/feature-flag-component/FeatureFlagComponent.tsx
@@ -29,13 +29,7 @@ const FeatureFlagComponent = (props: Props) => {
29
return null
30
}
31
32
- const cloneElement = (child: React.ReactElement) => React.cloneElement(child)
33
-
34
- return isArray(children) ? (
35
- <>{React.Children.map(children, cloneElement)}</>
36
- ) : (
37
- cloneElement(children)
38
- )
+ return <>{children}</>
39
40
41
export default FeatureFlagComponent
0 commit comments