Skip to content

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

fix: locked notes do not open after a refresh

thecodrr23440391f04a
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 1a16686e9..a24f7683d 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -73,15 +73,13 @@ function Editor({ noteId, nonce }) {
const editor = editorRef.current?.editor;
if (!editor) return;
function setContents() {
- if (editor.initialized) {
- editor.undoManager.clear();
- editor.undoManager.add();
- editor.setDirty(false);
+ editor.undoManager.clear();
+ editor.undoManager.add();
+ editor.setDirty(false);
- // NOTE: workaround to not fire onEditorChange event on content load
- editor.isLoading = true;
- editor.setContent(data, { format: "html" });
- }
+ // NOTE: workaround to not fire onEditorChange event on content load
+ editor.isLoading = true;
+ editor.setContent(data, { format: "html" });
}
setContents();
editor.on("init", setContents);
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 7edf2b6a3..28f2877a4 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -8433,8 +8433,8 @@ normalize-url@^3.0.0:
integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
- version "6.6.3"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#e78ae265b429caca832eb8cadf5581a0337d766d"
+ version "6.6.4"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#770a87d044e267fe5d4f6bf328811969aeb228ec"
dependencies:
fast-sort "^2.0.1"
fuzzysort "^1.1.4"