feat(config): allow config.yml file load to be skipped (#2053)

This commit is contained in:
Tony Alves
2019-02-03 14:48:40 -08:00
committed by Shawn Erquhart
parent 22e047e723
commit 14f94a022c
2 changed files with 33 additions and 1 deletions

View File

@ -111,7 +111,10 @@ export function loadConfig() {
try {
const preloadedConfig = getState().config;
const configUrl = getConfigUrl();
const loadedConfig = await getConfig(configUrl, preloadedConfig && preloadedConfig.size > 1);
const loadedConfig =
preloadedConfig && preloadedConfig.get('load_config_file') === false
? {}
: await getConfig(configUrl, preloadedConfig && preloadedConfig.size > 1);
/**
* Merge any existing configuration so the result can be validated.