[x] This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
[ ] My work includes tests or is validated by existing tests.
Summary
This PR refactors the AuditDetails component, getting rid of an unnecessary useEffect and replacing it with a key so that whenever the key (which I've set to the form UUID) changes, React will recreate the DOM and reset the state of the AuditDetails.
I've also removed a forgotten console.log statement and updated our eslint config with a rule that should flag uses of console.log in our codebase.
Requirements
Summary
This PR refactors the AuditDetails component, getting rid of an unnecessary useEffect and replacing it with a key so that whenever the key (which I've set to the form UUID) changes, React will recreate the DOM and reset the state of the
AuditDetails
.I've also removed a forgotten
console.log
statement and updated our eslint config with a rule that should flag uses ofconsole.log
in our codebase.Screenshots
https://github.com/openmrs/openmrs-esm-form-builder/assets/8509731/c38df294-ae6c-4e30-82d0-a2823663331a
Related Issue
None
Other
None