diff --git a/components/Map/index.js b/components/Map/index.js index e7830f4..04c930f 100644 --- a/components/Map/index.js +++ b/components/Map/index.js @@ -17,8 +17,8 @@ const Map = (props) => { const form = Form.useFormInstance(); const [mapVisible, setMapVisible] = useState(false); - const [currentLongitude, setCurrentLongitude] = useState(form.getFieldValue(longitudeProps) || ""); - const [currentLatitude, setCurrentLatitude] = useState(form.getFieldValue(latitudeProps) || ""); + const [currentLongitude, setCurrentLongitude] = useState(""); + const [currentLatitude, setCurrentLatitude] = useState(""); const handleMapConfirm = (longitudeValue, latitudeValue, extra) => { setCurrentLongitude(longitudeValue); @@ -45,7 +45,11 @@ const Map = (props) => { -