mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
fix undefined Sync section in the config file
This commit is contained in:
@@ -11,7 +11,7 @@ const config = require('./config');
|
||||
*/
|
||||
|
||||
async function get(name) {
|
||||
return config['Sync'][name] || await optionService.getOption(name);
|
||||
return (config['Sync'] && config['Sync'][name]) || await optionService.getOption(name);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user