提交 5834bb37 编写于 作者: J Johannes Rieken

fix problem with getConfigurationValue, #10583

上级 1acd2b53
......@@ -65,7 +65,7 @@ export function getConfigurationValue<T>(config: any, settingPath: string, defau
let current = config;
for (let i = 0; i < path.length; i++) {
current = current[path[i]];
if (!current) {
if (typeof current === 'undefined') {
return undefined;
}
}
......@@ -76,4 +76,4 @@ export function getConfigurationValue<T>(config: any, settingPath: string, defau
const result = accessSetting(config, path);
return typeof result === 'undefined' ? defaultValue : result;
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册