diff --git a/libs/ui-lib/lib/ocm/components/Routes.tsx b/libs/ui-lib/lib/ocm/components/Routes.tsx index c5224d9ac4..dd8fa5d083 100644 --- a/libs/ui-lib/lib/ocm/components/Routes.tsx +++ b/libs/ui-lib/lib/ocm/components/Routes.tsx @@ -8,11 +8,10 @@ import { AssistedUILibVersion } from './ui'; import { storeDay1 } from '../store'; import { useFeatureDetection } from '../hooks/use-feature-detection'; -export const Routes: React.FC<{ allEnabledFeatures: FeatureListType }> = ({ +export const Routes: React.FC<{ allEnabledFeatures?: FeatureListType }> = ({ allEnabledFeatures, - children, }) => { - useFeatureDetection(allEnabledFeatures); + useFeatureDetection(allEnabledFeatures || null); return ( @@ -21,8 +20,6 @@ export const Routes: React.FC<{ allEnabledFeatures: FeatureListType }> = ({ - {children} - );