Bug#209 - Issue Resolved: Form Retains Old Data on "Create New Project" #93
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "pramod_Bug-#209"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
After creating a new project, clicking "Create New Project" again would display the data from the previously created project.
The form was not being reset after submission, so its state persisted.
Fixed
Added a reset() call after form submission to clear the form state:
Same thing was happening in report task, so their added,
reset, setLoading(false) after api executation is completed.