Skip to content

Commit

Permalink
chore: conditional accessorr
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Nov 27, 2024
1 parent c4f8b80 commit 8029a9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8029a9d

Please sign in to comment.