fix(club): NPE on features
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 4m53s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 4m53s
This commit is contained in:
parent
8ecb9d714f
commit
6e7dd94d03
@ -104,7 +104,7 @@ export function LocationEditorModal({modal, sendData}) {
|
|||||||
}, [location]);
|
}, [location]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (data.features?.some((e) => e.properties.label === location)) {
|
if (data?.features?.some((e) => e.properties.label === location)) {
|
||||||
data.features.forEach((d) => {
|
data.features.forEach((d) => {
|
||||||
if (d.properties.label === location) {
|
if (d.properties.label === location) {
|
||||||
const {lat, lng} = convertLambert93ToLatLng(d.properties.x, d.properties.y)
|
const {lat, lng} = convertLambert93ToLatLng(d.properties.x, d.properties.y)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user