Fix: reinstantiate uploads

This commit is contained in:
Pieter Vander Vennet 2023-10-05 21:25:16 +02:00
parent 6b6b1e3286
commit 871d511616

View file

@ -517,17 +517,6 @@ export class Changes {
...motivations,
...perBinMessage,
]
{
const changes: {
newObjects: OsmObject[]
modifiedObjects: OsmObject[]
deletedObjects: OsmObject[]
} = self.CreateChangesetObjects(pending, objects);
if(changes.newObjects.length + changes.modifiedObjects.length + changes.deletedObjects.length === 0){
console.log("Not opening/uploading a changeset; seems like all changes are already applied")
return true
}
}
await this._changesetHandler.UploadChangeset(
(csId, remappings) => {