mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Fix #2338: stop subconfig unbinds being forgotten
This commit is contained in:
parent
1c4722f4db
commit
7594cfc73f
1 changed files with 2 additions and 3 deletions
|
@ -1024,7 +1024,7 @@ export class default_config {
|
|||
}
|
||||
|
||||
/** @hidden */
|
||||
const DEFAULTS = o(new default_config())
|
||||
export const DEFAULTS = o(new default_config())
|
||||
|
||||
/** Given an object and a target, extract the target if it exists, else return undefined
|
||||
|
||||
|
@ -1091,7 +1091,6 @@ export const mergeDeepCull = R.pipe(mergeDeep, removeNull)
|
|||
/** @hidden
|
||||
* Gets a site-specific setting.
|
||||
*/
|
||||
|
||||
export function getURL(url: string, target: string[]) {
|
||||
function _getURL(conf, url, target) {
|
||||
if (!conf.subconfigs) return undefined
|
||||
|
@ -1119,7 +1118,7 @@ export function getURL(url: string, target: string[]) {
|
|||
target,
|
||||
)
|
||||
if (acc instanceof Object && curVal instanceof Object)
|
||||
return mergeDeepCull(acc, curVal)
|
||||
return mergeDeep(acc, curVal)
|
||||
return curVal
|
||||
},
|
||||
undefined as any,
|
||||
|
|
Loading…
Add table
Reference in a new issue