Default meter select
Description
Fixes #1186
Utilized React's useEffect hook to manage which option is selected when there is only one option (the only available choice, by default).
Type of change
- [ x] Note merging this changes the database configuration.
- [ ] This change requires a documentation update
Checklist
- [ x] I have followed the OED pull request ideas
- [ x] I have removed text in ( ) from the issue request
- [ x] You acknowledge that every person contributing to this work has signed the OED Contributing License Agreement and each author is listed in the Description section.
Limitations
None, at first the code was too specific and only applied to one of the data categories but after reanalysis it was rewritten to work in a more general sense.
The code looks good, and very clear wit the functionality. it works and I'm personally not familiar with the nuances of react to determine if there is a better solution.
Everything looks good to me. Please convert this draft to PR.
This is a note to be sure that PR #1314 does similar logic/effect or to get them in sync. This does not directly impact this PR.
Thanks for catching those! Just made the edits and pushed them.