forked from MapComplete/MapComplete
Clear pending changes if they are already applied
This commit is contained in:
parent
c26783187b
commit
0ff6ac4af9
2 changed files with 4 additions and 2 deletions
|
@ -188,7 +188,9 @@ export class Changes implements FeatureSource {
|
|||
}
|
||||
}
|
||||
if (changedElements.length == 0 && newElements.length == 0) {
|
||||
console.log("No changes in any object");
|
||||
console.log("No changes in any object - clearing");
|
||||
this.pending.setData([])
|
||||
this.newObjects.setData([])
|
||||
return;
|
||||
}
|
||||
const self = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue