Skip to content

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

fix: TypeError: Cannot add property resolved, object is not extensible

thecodrrb373c3a94766
diff --git a/packages/core/api/sync/collector.js b/packages/core/api/sync/collector.js
index 7b76e1bf5..cac356bca 100644
--- a/packages/core/api/sync/collector.js
+++ b/packages/core/api/sync/collector.js
@@ -42,9 +42,9 @@ class Collector {
)
.map(async (item) => {
// in case of resolved delta
- item.resolved = false;
+ if (item.resolved) item.resolved = false;
// turn the migrated flag off so we don't keep syncing this item repeated
- item.migrated = false;
+ if (item.migrated) item.migrated = false;
return {
id: item.id,