Clear draft when no change to note
authorAdam Dullage <redacted>
Fri, 17 Mar 2023 12:29:48 +0000 (12:29 +0000)
committerAdam Dullage <redacted>
Fri, 17 Mar 2023 12:29:48 +0000 (12:29 +0000)
flatnotes/src/components/NoteViewerEditor.vue

index 2272d74355cbb17a44c53bec73ae33fdb0823e08..6a5985225bdc6eabf3b67a12ba30fad23248c8cf 100644 (file)
@@ -431,6 +431,7 @@ export default {
 
       // No Change
       else {
+        localStorage.removeItem(this.currentNote.title);
         this.setEditMode(false);
         this.noteSavedToast();
       }
git clone https://git.99rst.org/PROJECT