diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx index 59b0b9607cc6..7411ae5ddf41 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate/FeatureStrategyCreate.tsx @@ -83,7 +83,7 @@ export const FeatureStrategyCreate = () => { const navigate = useNavigate(); const { feature, refetchFeature } = useFeature(projectId, featureId); - const featureEnvironment = feature?.environments.find( + const featureEnvironment = feature?.environments?.find( (featureEnvironment) => featureEnvironment.name === environmentId, ); const strategyCount = featureEnvironment?.strategies.length || 0;