forked from MapComplete/MapComplete
		
	Fix: fix small crashes
This commit is contained in:
		
							parent
							
								
									766eae27e2
								
							
						
					
					
						commit
						6f66556cf3
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -317,11 +317,11 @@ class MapillaryFetcher implements ImageFetcher { | ||||||
|         }>(url) |         }>(url) | ||||||
|         const pics: (P4CPicture & { id: string })[] = [] |         const pics: (P4CPicture & { id: string })[] = [] | ||||||
|         for (const img of response.data) { |         for (const img of response.data) { | ||||||
|             const c = img.computed_geometry?.coordinates ?? img.geometry.coordinates |  | ||||||
|             if (img.thumb_original_url === undefined) { |             if (img.thumb_original_url === undefined) { | ||||||
|                 continue |                 continue | ||||||
|             } |             } | ||||||
|             const [lon, lat] = img.computed_geometry.coordinates |             const c = img.computed_geometry?.coordinates ?? img.geometry.coordinates | ||||||
|  |             const [lon, lat] = c | ||||||
|             pics.push({ |             pics.push({ | ||||||
|                 pictureUrl: img.thumb_original_url, |                 pictureUrl: img.thumb_original_url, | ||||||
|                 id: img.id, |                 id: img.id, | ||||||
|  |  | ||||||
|  | @ -60,7 +60,7 @@ | ||||||
|     class="pointer-events-none absolute bottom-0 left-0 flex w-full flex-wrap items-end justify-between" |     class="pointer-events-none absolute bottom-0 left-0 flex w-full flex-wrap items-end justify-between" | ||||||
|   > |   > | ||||||
|     <div class="pointer-events-auto m-1 w-fit transition-colors duration-200"> |     <div class="pointer-events-auto m-1 w-fit transition-colors duration-200"> | ||||||
|       <ImageAttribution image={$image} attributionFormat="large" /> |       <ImageAttribution {image} attributionFormat="large" /> | ||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|     <slot /> |     <slot /> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue