mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
fix: automation condition
This commit is contained in:
parent
56c3ed6a92
commit
2ee3a62808
@ -171,7 +171,9 @@ export const ReleasePlanMilestoneItem = ({
|
||||
const { pendingProgressionChange, effectiveTransitionCondition } =
|
||||
usePendingProgressionChanges(milestone, getPendingProgressionChange);
|
||||
|
||||
const automationSection = (
|
||||
const shouldShowAutomation = isNotLastMilestone && milestoneProgressionsEnabled;
|
||||
|
||||
const automationSection = shouldShowAutomation ? (
|
||||
<MilestoneAutomation
|
||||
milestone={milestone}
|
||||
status={status}
|
||||
@ -188,7 +190,7 @@ export const ReleasePlanMilestoneItem = ({
|
||||
onUpdateProgression={handleUpdateProgression}
|
||||
onDeleteProgression={onDeleteProgression}
|
||||
/>
|
||||
);
|
||||
) : undefined;
|
||||
|
||||
return (
|
||||
<div key={milestone.id}>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user