Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix sync
zadam719f10981e39
diff --git a/src/services/sync_update.js b/src/services/sync_update.jsindex 4415a62df3..10b8a5112c 100644--- a/src/services/sync_update.js+++ b/src/services/sync_update.js@@ -4,6 +4,11 @@ const syncTableService = require('./sync_table');const eventService = require('./events');async function updateEntity(sync, entity, sourceId) {+ // can be undefined for options with isSynced=false+ if (!entity) {+ return;+ }+const {entityName} = sync;if (entityName === 'notes') {