mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
Merge pull request #8693 from wljince007/v1.0.197_fixerror
This commit is contained in:
commit
821dcbff69
1 changed files with 4 additions and 1 deletions
|
@ -15,6 +15,9 @@ const deepmerge = require('deepmerge')
|
|||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||
export const configMerge = (a, b) => deepmerge(a, b, { arrayMerge: (_d, s) => s }) // eslint-disable-line @typescript-eslint/no-var-requires
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||
export const configMergeByDefault = (a, b) => deepmerge(a, b) // eslint-disable-line @typescript-eslint/no-var-requires
|
||||
|
||||
const LATEST_VERSION = 1
|
||||
|
||||
function isStructuralMember (v) {
|
||||
|
@ -162,7 +165,7 @@ export class ConfigService {
|
|||
defaults = configMerge(provider.defaults, defaults)
|
||||
}
|
||||
return defaults
|
||||
}).reduce(configMerge)
|
||||
}).reduce(configMergeByDefault)
|
||||
}
|
||||
|
||||
getDefaults (): Record<string, any> {
|
||||
|
|
Loading…
Reference in a new issue