diff --git a/redisinsight/ui/src/components/feature-flag-component/FeatureFlagComponent.tsx b/redisinsight/ui/src/components/feature-flag-component/FeatureFlagComponent.tsx index ba303d6376..112a7731ec 100644 --- a/redisinsight/ui/src/components/feature-flag-component/FeatureFlagComponent.tsx +++ b/redisinsight/ui/src/components/feature-flag-component/FeatureFlagComponent.tsx @@ -29,13 +29,7 @@ const FeatureFlagComponent = (props: Props) => { return null } - const cloneElement = (child: React.ReactElement) => React.cloneElement(child) - - return isArray(children) ? ( - <>{React.Children.map(children, cloneElement)} - ) : ( - cloneElement(children) - ) + return <>{children} } export default FeatureFlagComponent