From 2ee3a628086d4d91416f60d692172fea710de8d0 Mon Sep 17 00:00:00 2001 From: FredrikOseberg Date: Wed, 22 Oct 2025 11:19:15 +0200 Subject: [PATCH] fix: automation condition --- .../ReleasePlanMilestoneItem/ReleasePlanMilestoneItem.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanMilestoneItem/ReleasePlanMilestoneItem.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanMilestoneItem/ReleasePlanMilestoneItem.tsx index 94c69637a8..883095cf4e 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanMilestoneItem/ReleasePlanMilestoneItem.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanMilestoneItem/ReleasePlanMilestoneItem.tsx @@ -171,7 +171,9 @@ export const ReleasePlanMilestoneItem = ({ const { pendingProgressionChange, effectiveTransitionCondition } = usePendingProgressionChanges(milestone, getPendingProgressionChange); - const automationSection = ( + const shouldShowAutomation = isNotLastMilestone && milestoneProgressionsEnabled; + + const automationSection = shouldShowAutomation ? ( - ); + ) : undefined; return (