forked from MapComplete/MapComplete
Fix: fix #2372
This commit is contained in:
parent
e56e8fe112
commit
1493c00edf
1 changed files with 4 additions and 4 deletions
|
@ -190,7 +190,7 @@ export class ImageUploadManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
;({ key, value, absoluteUrl } = await this._uploader.uploadImage(
|
({ key, value, absoluteUrl } = await this._uploader.uploadImage(
|
||||||
blob,
|
blob,
|
||||||
location,
|
location,
|
||||||
author,
|
author,
|
||||||
|
@ -200,7 +200,7 @@ export class ImageUploadManager {
|
||||||
this.increaseCountFor(this._uploadRetried, featureId)
|
this.increaseCountFor(this._uploadRetried, featureId)
|
||||||
console.error("Could not upload image, trying again:", e)
|
console.error("Could not upload image, trying again:", e)
|
||||||
try {
|
try {
|
||||||
;({ key, value, absoluteUrl } = await this._uploader.uploadImage(
|
({ key, value, absoluteUrl } = await this._uploader.uploadImage(
|
||||||
blob,
|
blob,
|
||||||
location,
|
location,
|
||||||
author,
|
author,
|
||||||
|
@ -222,9 +222,9 @@ export class ImageUploadManager {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("Uploading image done, creating action for", featureId)
|
console.log("Uploading image done, creating action for", featureId, " targetkey is", targetKey, "key is", key)
|
||||||
key = targetKey ?? key
|
key = targetKey ?? key
|
||||||
if (targetKey) {
|
if (targetKey && targetKey.indexOf(key) < 0) {
|
||||||
// This is a non-standard key, so we use the image link directly
|
// This is a non-standard key, so we use the image link directly
|
||||||
value = absoluteUrl
|
value = absoluteUrl
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue