forked from MapComplete/MapComplete
UX: fix #2416, small code cleanup
This commit is contained in:
parent
a4fe5a11ed
commit
77afd8b426
8 changed files with 57 additions and 66 deletions
|
|
@ -47,10 +47,11 @@ export default class ImageUploadQueue {
|
|||
applyRemapping(oldId: string, newId: string) {
|
||||
let hasChange = false
|
||||
for (const img of this._imagesInQueue.data) {
|
||||
if (img.featureId === oldId) {
|
||||
img.featureId = newId
|
||||
hasChange = true
|
||||
if (img.featureId !== oldId) {
|
||||
continue
|
||||
}
|
||||
img.featureId = newId
|
||||
hasChange = true
|
||||
}
|
||||
if (hasChange) {
|
||||
this._imagesInQueue.ping()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue