Fix GRB upload issue

This commit is contained in:
Pieter Vander Vennet 2024-07-21 10:23:40 +02:00
parent 9fa3992e05
commit 1ba2139bc6
2 changed files with 1 additions and 2 deletions

View file

@ -136,7 +136,6 @@ export class ChangeDescriptionTools {
mappings: Map<string, string>
): 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)
)

View file

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