Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-2707: Avoid modifying parent patch when restarting downstream tasks #2251

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/components/VersionRestartModal/VersionRestartModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,12 @@ const selectTasksTotal = (selectedTasks: versionSelectedTasks) =>
);

const getTaskIds = (selectedTasks: versionSelectedTasks) =>
Object.entries(selectedTasks).map(([versionId, tasks]) => ({
versionId,
taskIds: selectedArray(tasks),
}));
Object.entries(selectedTasks)
.map(([versionId, tasks]) => ({
versionId,
taskIds: selectedArray(tasks),
}))
.filter(({ taskIds }) => taskIds.length > 0);

const ConfirmationMessage = styled(Body)<BodyProps>`
padding: ${size.s} 0;
Expand Down
Loading