sharedstreets / sharedstreets-road-closure-ui

a lightweight application for municipalities to create non proprietary, standardized road closures data using the SharedStreets referencing system
http://roadclosures-test.sharedstreets.io
12 stars 6 forks source link

reset upload URLs from redux store on navigation #96

Closed indraneel closed 5 years ago

indraneel commented 5 years ago

the redux store contains upload URLs to present, and to use to save a new or update an existing closure. when navigating within the app (specifically when src/App.tsx is mounted in the case where there needs to be a new closure created https://github.com/sharedstreets/sharedstreets-road-closure-ui/blob/master/src/App.tsx#L60), the state was not getting reset appropriately, causing a just-used URL to be reused.

this change returns the default state in the ROAD_CLOSURE/RESET_ROAD_CLOSURE action