forked from MapComplete/MapComplete
Fix crash if there are no photos in the velopark data
This commit is contained in:
parent
505844b64a
commit
7445ad5fc2
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ export default class VeloparkLoader {
|
|||
properties["operator:phone"] = VeloparkLoader.phoneValidator.reformat(veloparkData.contactPoint?.telephone, () => "be")
|
||||
}
|
||||
|
||||
veloparkData.photos.forEach((p, i) => {
|
||||
veloparkData.photos?.forEach((p, i) => {
|
||||
if (i === 0) {
|
||||
properties["image"] = p.image
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue