@samitouri / QOSami-HFS / commits / 09d1857e

fix: --arguments and ENVs were ignored if config.yaml is missing

Massimo Melina committed Jul 13, 2024 at 22:31 UTC 09d1857ed4204f72eb529453cfb1c63e90d735b4
1 file changed +2 -1
src/config.ts
+2 -1
@@ -190,6 +190,7 @@ export const configFile = watchLoad(filePath, text => {
190 }, {
191 failedOnFirstAttempt(){
192 console.log("No config file, using defaults")
193 - setConfig({}, false)
193 + setTimeout(() => // this is called synchronously, but we need to call setConfig after first tick, when all configs are defined
194 + setConfig({}, false))
195 }
196 })
\ No newline at end of file