forked from MapComplete/MapComplete
		
	Fix: actually upload images to notes
This commit is contained in:
		
							parent
							
								
									4552ccbbf1
								
							
						
					
					
						commit
						a8707243cf
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		|  | @ -212,7 +212,7 @@ export class ImageUploadManager { | ||||||
|             args.featureId |             args.featureId | ||||||
|         ) |         ) | ||||||
| 
 | 
 | ||||||
|         if (args.featureId.startsWith("note/")) { |         if (!isNaN(Number(args.featureId))) { | ||||||
|             // This is an OSM-note
 |             // This is an OSM-note
 | ||||||
|             const url = result.absoluteUrl |             const url = result.absoluteUrl | ||||||
|             await this._osmConnection.addCommentToNote(args.featureId, url) |             await this._osmConnection.addCommentToNote(args.featureId, url) | ||||||
|  |  | ||||||
|  | @ -13,7 +13,6 @@ | ||||||
|   import FileSelector from "../Base/FileSelector.svelte" |   import FileSelector from "../Base/FileSelector.svelte" | ||||||
|   import LoginButton from "../Base/LoginButton.svelte" |   import LoginButton from "../Base/LoginButton.svelte" | ||||||
|   import { Translation } from "../i18n/Translation" |   import { Translation } from "../i18n/Translation" | ||||||
|   import LayerConfig from "../../Models/ThemeConfig/LayerConfig" |  | ||||||
|   import type { Feature } from "geojson" |   import type { Feature } from "geojson" | ||||||
|   import Camera from "@babeard/svelte-heroicons/mini/Camera" |   import Camera from "@babeard/svelte-heroicons/mini/Camera" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue