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 } =
|
const { pendingProgressionChange, effectiveTransitionCondition } =
|
||||||
usePendingProgressionChanges(milestone, getPendingProgressionChange);
|
usePendingProgressionChanges(milestone, getPendingProgressionChange);
|
||||||
|
|
||||||
const automationSection = (
|
const shouldShowAutomation = isNotLastMilestone && milestoneProgressionsEnabled;
|
||||||
|
|
||||||
|
const automationSection = shouldShowAutomation ? (
|
||||||
<MilestoneAutomation
|
<MilestoneAutomation
|
||||||
milestone={milestone}
|
milestone={milestone}
|
||||||
status={status}
|
status={status}
|
||||||
@ -188,7 +190,7 @@ export const ReleasePlanMilestoneItem = ({
|
|||||||
onUpdateProgression={handleUpdateProgression}
|
onUpdateProgression={handleUpdateProgression}
|
||||||
onDeleteProgression={onDeleteProgression}
|
onDeleteProgression={onDeleteProgression}
|
||||||
/>
|
/>
|
||||||
);
|
) : undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={milestone.id}>
|
<div key={milestone.id}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user