Skip to content

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

fix: explicitly set note contentId

thecodrrec58b77bf069
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 679fb3971..8cdba1651 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -53,6 +53,8 @@ export default class Notes extends Collection {
...noteArg,
};
+ if (oldNote) note.contentId = oldNote.contentId;
+
if (!oldNote && !noteArg.content && !noteArg.contentId) return;
if (noteArg.content && noteArg.content.data && noteArg.content.type) {