Currently, on the Event page, the map pulls the garden latitude and longitude from Redux. But these properties are only populated if you have navigated to the Event page from the Garden page... i.e. the pin won't appear on the map if you refresh on the Event page.
Get the coordinates of the garden in the useEffect of the Event page.
Currently, on the Event page, the map pulls the garden latitude and longitude from Redux. But these properties are only populated if you have navigated to the Event page from the Garden page... i.e. the pin won't appear on the map if you refresh on the Event page.
Get the coordinates of the garden in the
useEffectof the Event page.