diff --git a/frontend/src/component/feature/FeatureView/FeatureView.tsx b/frontend/src/component/feature/FeatureView/FeatureView.tsx index 2ea142a28324..ddc9166c58c8 100644 --- a/frontend/src/component/feature/FeatureView/FeatureView.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureView.tsx @@ -130,7 +130,7 @@ export const StyledLink = styled(Link)(() => ({ const useLegacyVariants = (environments: IFeatureToggle['environments']) => { const enableLegacyVariants = useUiFlag('enableLegacyVariants'); - const existingLegacyVariantsExist = environments.some( + const existingLegacyVariantsExist = environments?.some( (environment) => environment.variants?.length, ); return enableLegacyVariants || existingLegacyVariantsExist;