fix: Fixed issue where a new note would not be correctly synced after making changes

This commit is contained in:
Aman Harwara
2023-04-13 00:06:53 +05:30
parent 6971e4c028
commit 9f824266ac
2 changed files with 6 additions and 1 deletions

View File

@@ -25,6 +25,10 @@ export class NoteSyncController {
constructor(private application: WebApplication, private item: SNNote) {}
setItem(item: SNNote) {
this.item = item
}
deinit() {
if (this.saveTimeout) {
clearTimeout(this.saveTimeout)