noticed that the form wasn't clearing, added that functionality to the onSubmit function, which also triggers handle submit, could add the handle submit functionality to the onSubmit function but thats a tomorrow problem

This commit is contained in:
StefanWout 2024-11-21 16:53:44 +00:00
parent 710d60b5ed
commit cad43681ad

View file

@ -366,6 +366,9 @@ export default function RemoteAssessmentModal({
// Then trigger the data upload using handleSubmit from useCreateRemoteAssessment
await handleSubmit();
// Reset the form
form.reset();
// Close the modal on success
setIsOpen(false);