Merge pull request 'fix(club): NPE on features' (#5) from dev into master
Reviewed-on: #5
This commit is contained in:
commit
5021b07da3
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user