From 8896fb4ae92f707958df50bbc4be41214ab328bc Mon Sep 17 00:00:00 2001 From: "konveyor-ci-bot[bot]" <159171263+konveyor-ci-bot[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:09:35 -0400 Subject: [PATCH] :bug: Retake should preverve previous data (#1813) (#1814) Resolves https://issues.redhat.com/browse/MTA-2512 Resolves https://github.com/konveyor/tackle2-ui/issues/1809 Signed-off-by: Ian Bolton Signed-off-by: Cherry Picker Signed-off-by: Ian Bolton Signed-off-by: Cherry Picker Co-authored-by: Ian Bolton --- .../dynamic-assessment-actions-row.tsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/client/src/app/pages/assessment/components/assessment-actions/components/dynamic-assessment-actions-row.tsx b/client/src/app/pages/assessment/components/assessment-actions/components/dynamic-assessment-actions-row.tsx index 3ff5a89b4..9b2359609 100644 --- a/client/src/app/pages/assessment/components/assessment-actions/components/dynamic-assessment-actions-row.tsx +++ b/client/src/app/pages/assessment/components/assessment-actions/components/dynamic-assessment-actions-row.tsx @@ -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); } } };