Fix: fix small crashes

This commit is contained in:
Pieter Vander Vennet 2025-06-06 22:44:34 +02:00
parent 766eae27e2
commit 6f66556cf3
2 changed files with 3 additions and 3 deletions

View file

@ -317,11 +317,11 @@ class MapillaryFetcher implements ImageFetcher {
}>(url)
const pics: (P4CPicture & { id: string })[] = []
for (const img of response.data) {
const c = img.computed_geometry?.coordinates ?? img.geometry.coordinates
if (img.thumb_original_url === undefined) {
continue
}
const [lon, lat] = img.computed_geometry.coordinates
const c = img.computed_geometry?.coordinates ?? img.geometry.coordinates
const [lon, lat] = c
pics.push({
pictureUrl: img.thumb_original_url,
id: img.id,