mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
refactored access to options on frontend
This commit is contained in:
@@ -315,10 +315,13 @@ async function getSyncRecords(syncs) {
|
||||
let length = 0;
|
||||
|
||||
for (const sync of syncs) {
|
||||
const record = {
|
||||
sync: sync,
|
||||
entity: await getEntityRow(sync.entityName, sync.entityId)
|
||||
};
|
||||
const entity = await getEntityRow(sync.entityName, sync.entityId);
|
||||
|
||||
if (sync.entityName === 'options' && !entity.isSynced) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const record = { sync, entity };
|
||||
|
||||
records.push(record);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user