diff --git a/src/components/Map/index.jsx b/src/components/Map/index.jsx index a4beeb141..e2139e7c5 100644 --- a/src/components/Map/index.jsx +++ b/src/components/Map/index.jsx @@ -1,5 +1,4 @@ import {GeoSearchControl} from 'leaflet-geosearch'; -import isEqual from 'lodash/isEqual'; import PropTypes from 'prop-types'; import React, {useCallback, useContext, useEffect} from 'react'; import {defineMessages, useIntl} from 'react-intl'; @@ -71,12 +70,6 @@ const LeaftletMap = ({ const defaultCoordinates = useDefaultCoordinates(); const coordinates = markerCoordinates || defaultCoordinates; - const onWrapperMarkerSet = coordinates => { - const coordinatesChanged = !isEqual(markerCoordinates, coordinates); - if (!coordinatesChanged) return; - onMarkerSet(coordinates); - }; - const modifiers = disabled ? ['disabled'] : []; const className = getBEMClassName('leaflet-map', modifiers); @@ -103,7 +96,6 @@ const LeaftletMap = ({ {coordinates ? ( <> - ) : null} - {disabled ? : } + {/*{disabled ? : }*/} {markerCoordinates && markerCoordinates.length && (