fix backend to frontend sync with waitForSyncId()

This commit is contained in:
zadam
2020-03-10 21:33:03 +01:00
parent bcbf1b79c3
commit e6e41adad0
3 changed files with 22 additions and 5 deletions

View File

@@ -100,4 +100,14 @@ export default class LoadResults {
isOptionReloaded(name) {
this.options.includes(name);
}
isEmpty() {
return Object.keys(this.noteIdToSourceId).length > 0
|| this.branches.length > 0
|| this.attributes.length > 0
|| this.noteReorderings.length > 0
|| this.noteRevisions.length > 0
|| this.contentNoteIdToSourceId.length > 0
|| this.options.length > 0;
}
}