UX: fix #2416, small code cleanup

This commit is contained in:
Pieter Vander Vennet 2025-05-13 16:13:05 +02:00
parent a4fe5a11ed
commit 77afd8b426
8 changed files with 57 additions and 66 deletions

View file

@ -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()