Small optimazations

This commit is contained in:
Pieter Vander Vennet 2021-07-26 15:03:07 +02:00
parent cc22c5b0fb
commit 5cc963513a
4 changed files with 7 additions and 3 deletions

View file

@ -265,7 +265,7 @@ export class Changes {
console.log("No changes to be made")
this.pendingChanges.setData([])
this.isUploading.setData(false)
return;
return true; // Unregister the callback
}
@ -280,6 +280,7 @@ export class Changes {
},
() => self.isUploading.setData(false) // Failed - mark to try again
)
return true;
});

View file

@ -53,6 +53,9 @@ export class ChangesetHandler {
element.ping();
}
const newVersion = parseInt(node.attributes.new_id.value);
}
}