From 6bcf3d75227ecfe8d2c01fd30b24afb8724c9fd3 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 21 Oct 2022 19:02:00 +0200 Subject: [PATCH] Dont's save without changes --- web/editor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/editor.tsx b/web/editor.tsx index dc838d3..22c0dc8 100644 --- a/web/editor.tsx +++ b/web/editor.tsx @@ -278,6 +278,9 @@ export class Editor { this.saveTimeout = setTimeout( () => { if (this.currentPage) { + if (!this.viewState.unsavedChanges) { + return resolve(); + } console.log("Saving page", this.currentPage); this.space .writePage(