forked from MapComplete/MapComplete
Some robustness if no changes have to be made anymore
This commit is contained in:
parent
5c3665fd9d
commit
aee161d456
1 changed files with 5 additions and 0 deletions
|
|
@ -222,6 +222,11 @@ export class Changes {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Got the fresh objects!", osmObjects, "pending: ", pending)
|
console.log("Got the fresh objects!", osmObjects, "pending: ", pending)
|
||||||
|
if(pending.length == 0){
|
||||||
|
console.log("No pending changes...")
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
const perType = Array.from(
|
const perType = Array.from(
|
||||||
Utils.Hist(pending.filter(descr => descr.meta.changeType !== undefined && descr.meta.changeType !== null)
|
Utils.Hist(pending.filter(descr => descr.meta.changeType !== undefined && descr.meta.changeType !== null)
|
||||||
.map(descr => descr.meta.changeType)), ([key, count]) => (
|
.map(descr => descr.meta.changeType)), ([key, count]) => (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue