Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: content not saving after session switch

thecodrr565c6df0c415
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 8df092d08..f1be274bd 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -225,8 +225,8 @@ function Editor({ noteId, nonce }) {
action={{
text: "Restore this version",
onClick: async () => {
- await editorstore.get().saveSession();
await disablePreviewMode(false);
+ await editorstore.get().saveSession();
},
}}
/>