Skip to content

Commit

Permalink
🐛 Retake should preverve previous data (#1813) (#1814)
Browse files Browse the repository at this point in the history
Resolves https://issues.redhat.com/browse/MTA-2512
Resolves #1809

Signed-off-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>

Signed-off-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
  • Loading branch information
konveyor-ci-bot[bot] and ibolton336 authored Apr 2, 2024
1 parent 9e2d907 commit 8896fb4
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,23 +187,7 @@ const DynamicAssessmentActionsRow: FunctionComponent<
onOpenModal(assessment);
} else if (action === AssessmentAction.Retake) {
if (assessment) {
try {
await deleteAssessmentAsync({
assessmentId: assessment.id,
applicationName: application?.name,
applicationId: application?.id,
archetypeName: archetype?.name,
archetypeId: archetype?.id,
}).then(() => {
createAssessment();
});
} catch (error) {
pushNotification({
title: t("terms.error"),
variant: "danger",
});
console.error("Error while deleting assessment:", error);
}
onOpenModal(assessment);
}
}
};
Expand Down

0 comments on commit 8896fb4

Please sign in to comment.