Skip to content

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

fix: return null if items are undefined

thecodrr052fca4f4294
diff --git a/packages/core/api/sync/collector.js b/packages/core/api/sync/collector.js
index 2e3538ded..98bf2c2ab 100644
--- a/packages/core/api/sync/collector.js
+++ b/packages/core/api/sync/collector.js
@@ -31,7 +31,7 @@ class Collector {
}
_serialize(item) {
- if (!item) return;
+ if (!item) return null;
return this._db.context.encrypt(this.key, JSON.stringify(item));
}