Clear pending changes if they are already applied

This commit is contained in:
pietervdvn 2021-07-13 14:31:03 +02:00
parent c26783187b
commit 0ff6ac4af9
2 changed files with 4 additions and 2 deletions

View file

@ -188,7 +188,9 @@ export class Changes implements FeatureSource {
} }
} }
if (changedElements.length == 0 && newElements.length == 0) { 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; return;
} }
const self = this; const self = this;

View file

@ -2,7 +2,7 @@ import { Utils } from "../Utils";
export default class Constants { export default class Constants {
public static vNumber = "0.8.4-rc2"; public static vNumber = "0.8.4-rc3";
// The user journey states thresholds when a new feature gets unlocked // The user journey states thresholds when a new feature gets unlocked
public static userJourney = { public static userJourney = {