Skip to content

Commit

Permalink
chore: conditional access
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Nov 27, 2024
1 parent 7b8b716 commit c4f8b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/component/feature/FeatureView/FeatureView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4f8b80

Please sign in to comment.