This commit is contained in:
zadam 2020-02-19 22:09:02 +01:00
parent 52f4876f2d
commit d9fb36a9a6
2 changed files with 7 additions and 2 deletions

View file

@ -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
};

View file

@ -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;
}