diff --git a/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm/MilestoneList/MilestoneList.tsx b/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm/MilestoneList/MilestoneList.tsx index d235d2aad3..2929c9964c 100644 --- a/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm/MilestoneList/MilestoneList.tsx +++ b/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm/MilestoneList/MilestoneList.tsx @@ -32,7 +32,11 @@ export const MilestoneList = ({ }: IMilestoneListProps) => { const useNewMilestoneCard = useUiFlag('flagOverviewRedesign'); const onMoveItem: OnMoveItem = useCallback( - async (dragIndex: number, dropIndex: number) => { + async (dragIndex: number, dropIndex: number, save?: boolean) => { + if (useNewMilestoneCard && save) { + return; // the user has let go, we should leave the current sort order as it is currently visually displayed + } + if (dragIndex !== dropIndex) { const oldMilestones = milestones || []; const newMilestones = [...oldMilestones];