Skip to content

Commit

Permalink
🐛 Retake should preverve previous data
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Apr 1, 2024
1 parent 3bcce7a commit 26d0445
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 26d0445

Please sign in to comment.