diff --git a/src/components/Map/Map.jsx b/src/components/Map/Map.jsx index a860db6..905616b 100644 --- a/src/components/Map/Map.jsx +++ b/src/components/Map/Map.jsx @@ -215,7 +215,7 @@ export default function Map({ } const NewItemMarker = () => { - const map = useMapEvents({ + useMapEvents({ click(event) { setPosition(event.latlng); },