Skip to content

Commit

Permalink
remove note (added in error)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Dec 30, 2024
1 parent ada6d81 commit b63aba8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/Map/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export default function CartoMap(){
function DataLayer(){
const { logActivity, data } = useContext(DataContext)
const activeCorridor = data.activeCorridor
const map = useMap()
// TODO: should only be set up as needed
map.current.once('click', (event) => { // add an intersection
useMap().current.once('click', (event) => { // add an intersection
if( activeCorridor?.intersections?.length < 2 ){
fetch(`${domain}/nodes-within/50/${event.lngLat.lng}/${event.lngLat.lat}`)
.then( resp => resp.json() )
Expand Down

0 comments on commit b63aba8

Please sign in to comment.