diff --git a/src/utils/configuration.ts b/src/utils/configuration.ts index 1b92844..c445b93 100644 --- a/src/utils/configuration.ts +++ b/src/utils/configuration.ts @@ -182,7 +182,7 @@ async function readConfigFile() { const cfg = JSON.parse(raw) // Switch file to config-specified profile let pf = cfg['profile'] - if (pf != 'default') { + if (pf && pf != 'default') { const pff = pf pf = 'profiles/' + pff + '.json' } else {