Skip to content

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

fix: note.notebook should be undefined when no nb assigned

thecodrrc30856edc5b0
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 4e83880d5..b03474171 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -66,7 +66,7 @@ export default class Notes extends Collection {
headline: note.headline,
pinned: !!note.pinned,
locked: !!note.locked,
- notebook: note.notebook || {},
+ notebook: note.notebook || undefined,
colors: note.colors || [],
tags: note.tags || [],
favorite: !!note.favorite,