Skip to content

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

fix: unable to view note after restoring it from trash (fixes streetwriters/notesnook#424)

thecodrr1b44de4ed1af
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 864a8192f..9a3713ff1 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -231,7 +231,8 @@ class EditorStore extends BaseStore {
});
noteStore.setSelectedNote(0);
this.toggleProperties(false);
- if (shouldNavigate) hashNavigate(`/`, { replace: true });
+ if (shouldNavigate)
+ hashNavigate(`/notes/create`, { replace: true, addNonce: true });
};
setTitle = (sessionId, title) => {