Skip to content

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

fix: note deleted on restore

thecodrr8d35f97fdaa7
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 72ffcab59..21267b119 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -241,8 +241,8 @@ function isNoteEmpty(note) {
locked
} = note;
const isTitleEmpty = !title || !title.trim().length;
- const isTextEmpty = !text || !text.trim().length;
- const isDeltaEmpty = !delta || !delta.ops;
+ const isTextEmpty = !isHex(text) && (!text || !text.trim().length);
+ const isDeltaEmpty = !isHex(delta) && (!delta || !delta.ops);
return !locked && isTitleEmpty && isTextEmpty && isDeltaEmpty;
}