mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
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:
parent
710d60b5ed
commit
cad43681ad
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue