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
fixes
zadamd9fb36a9a63a
diff --git a/src/services/options_init.js b/src/services/options_init.jsindex 1894410e29..d6e35e56e1 100644--- a/src/services/options_init.js+++ b/src/services/options_init.js@@ -104,7 +104,7 @@ function getKeyboardDefaultOptions() {.filter(ka => !!ka.actionName).map(ka => {return {- name: "keyboardShortcuts" + ka.actionName,+ name: "keyboardShortcuts" + ka.actionName.charAt(0).toUpperCase() + ka.actionName.slice(1),value: JSON.stringify(ka.defaultShortcuts),isSynced: false};diff --git a/src/services/sync.js b/src/services/sync.jsindex bc6b259fa7..41cca5e9c3 100644--- a/src/services/sync.js+++ b/src/services/sync.js@@ -156,7 +156,10 @@ async function pullSync(syncContext) {appliedPulls++;}- await syncUpdateService.updateEntity(sync, entity, syncContext.sourceId);+ // can be undefined for options with isSynced=false+ if (entity) {+ await syncUpdateService.updateEntity(sync, entity, syncContext.sourceId);+ }}stats.outstandingPulls = resp.maxSyncId - sync.id;@@ -318,6 +321,8 @@ async function getSyncRecords(syncs) {const entity = await getEntityRow(sync.entityName, sync.entityId);if (sync.entityName === 'options' && !entity.isSynced) {+ records.push({sync});+continue;}