mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:47:07 +00:00
@@ -19,7 +19,7 @@ async function get (projectId, path, opts = {}) {
|
||||
|
||||
if (path) {
|
||||
return path.split('/').filter(i => i !== "").reduce( (obj, idx) =>
|
||||
typeof obj !== 'undefined' ? obj[idx] : undefined, config);
|
||||
(typeof obj !== 'undefined' && obj !== null) ? obj[idx] : undefined, config);
|
||||
} else {
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user