diff --git a/src/main/webapp/src/components/Club/LocationEditor.jsx b/src/main/webapp/src/components/Club/LocationEditor.jsx index a1e99d1..9369078 100644 --- a/src/main/webapp/src/components/Club/LocationEditor.jsx +++ b/src/main/webapp/src/components/Club/LocationEditor.jsx @@ -104,7 +104,7 @@ export function LocationEditorModal({modal, sendData}) { }, [location]); useEffect(() => { - if (data.features?.some((e) => e.properties.label === location)) { + if (data?.features?.some((e) => e.properties.label === location)) { data.features.forEach((d) => { if (d.properties.label === location) { const {lat, lng} = convertLambert93ToLatLng(d.properties.x, d.properties.y)