Skip to content

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

fix: make sure object is not null

thecodrr56f050ab27d8
diff --git a/packages/core/api/sync/utils.js b/packages/core/api/sync/utils.js
index deab1087e..36b231612 100644
--- a/packages/core/api/sync/utils.js
+++ b/packages/core/api/sync/utils.js
@@ -1,5 +1,5 @@
function areAllEmpty(obj) {
- const arrays = Object.values(obj).filter((v) => v.length !== undefined);
+ const arrays = Object.values(obj).filter((v) => v && v.length !== undefined);
return arrays.every((array) => array.length === 0);
}