From 1ba2139bc6f7e08a0b31c436a56f6715e1e4b3fe Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 21 Jul 2024 10:23:40 +0200 Subject: [PATCH] Fix GRB upload issue --- src/Logic/Osm/Actions/ChangeDescription.ts | 1 - src/Logic/Osm/Changes.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Logic/Osm/Actions/ChangeDescription.ts b/src/Logic/Osm/Actions/ChangeDescription.ts index fe34e623e7..65de2ab954 100644 --- a/src/Logic/Osm/Actions/ChangeDescription.ts +++ b/src/Logic/Osm/Actions/ChangeDescription.ts @@ -136,7 +136,6 @@ export class ChangeDescriptionTools { mappings: Map ): ChangeDescription { const key = change.type + "/" + change.id -console.log("Checking remapping ", change.id, mappings, change) const wayHasChangedNode = ((change.changes ?? {})["nodes"] ?? []).some((id) => mappings.has("node/" + id) ) diff --git a/src/Logic/Osm/Changes.ts b/src/Logic/Osm/Changes.ts index df99092045..8b959b222b 100644 --- a/src/Logic/Osm/Changes.ts +++ b/src/Logic/Osm/Changes.ts @@ -570,7 +570,7 @@ export class Changes { // All ids which have an 'update' const createdIds = - new Set(pending.filter(cd => cd.type === "node" && cd.changes !== undefined).map(cd => cd.id)) + new Set(pending.filter(cd => cd.changes !== undefined).map(cd => cd.id)) pending.forEach(c => { if (c.id < 0) { if (createdIds.has(c.id)) {