From aee161d4568506851659497c7556d0e9f51d0db9 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 8 Jun 2022 01:27:21 +0200 Subject: [PATCH] Some robustness if no changes have to be made anymore --- Logic/Osm/Changes.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Logic/Osm/Changes.ts b/Logic/Osm/Changes.ts index 17b93b9ae9..069eed259e 100644 --- a/Logic/Osm/Changes.ts +++ b/Logic/Osm/Changes.ts @@ -222,6 +222,11 @@ export class Changes { } console.log("Got the fresh objects!", osmObjects, "pending: ", pending) + if(pending.length == 0){ + console.log("No pending changes...") + return true; + } + const perType = Array.from( Utils.Hist(pending.filter(descr => descr.meta.changeType !== undefined && descr.meta.changeType !== null) .map(descr => descr.meta.changeType)), ([key, count]) => (