Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-select AOIs that have the "selected" prop set to true (#1215)
**Related Ticket:** #950 US-GHG-Center/veda-config-ghg#406 ### Description of Changes The fix make sures that selected AOIs persist across page reloads. Previously when an AOI was selected, the selection was lost after a page reload (visually, the polygon was de-selected). The fix checks for existing AOI selections on load and adjusts the mode accordingly. We also started to enhance the documentation and tests around AOI behavior (thanks to @AliceR): #1207 ### Notes & Questions About Changes _{Add additonal notes and outstanding questions here related to changes in this pull request}_ ### Validation / Testing 1. Draw a polygon 2. Once you finish drawing, see that the AOI is selected 3. Reload the page 4. Verify that the AOI is still selected 5. Choose a preselected area (one of the state presets) 6. Reload the page and verify that it remains un-selectable
- Loading branch information