forked from MapComplete/MapComplete
Properly wire 'async' through the uploader
This commit is contained in:
parent
89b9cb4b47
commit
cbf5c5a748
4 changed files with 19 additions and 18 deletions
|
@ -1062,9 +1062,9 @@ export default class SpecialVisualizations {
|
|||
const t = Translations.t.notes;
|
||||
const id = tags.data[args[0] ?? "id"]
|
||||
|
||||
const uploader = new ImgurUploader(url => {
|
||||
const uploader = new ImgurUploader(async url => {
|
||||
isUploading.setData(false)
|
||||
state.osmConnection.addCommentToNote(id, url)
|
||||
await state.osmConnection.addCommentToNote(id, url)
|
||||
NoteCommentElement.addCommentTo(url, tags, state)
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue