Skip to content

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

fix: don't show unsynced error on empty note

thecodrr3f13a91f370a
diff --git a/apps/web/package.json b/apps/web/package.json
index 57f2da665..fd90c282a 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -12,7 +12,7 @@
"@notesnook/crypto": "^1.0.0",
"@notesnook/desktop": "file:desktop",
"@rebass/forms": "^4.0.6",
- "@streetwriters/tinymce-plugins": "^1.5.17",
+ "@streetwriters/tinymce-plugins": "^1.5.18",
"@tinymce/tinymce-react": "^3.13.0",
"@types/rebass": "^4.0.10",
"async-mutex": "^0.3.2",
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 96ce9deb3..feed8b1b9 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -104,7 +104,7 @@ function Editor({ noteId, nonce }) {
if (!editor || !editor.initialized) return;
async function setContents() {
- if (!db.notes.note(noteId)?.synced()) {
+ if (!db.notes.note(id)?.synced()) {
await showError(
"Note not synced",
"This note is not fully synced. Please sync again to open this note for editing."