lint
This commit is contained in:
parent
14e2e57c55
commit
69752f1809
2 changed files with 23 additions and 17 deletions
|
|
@ -688,7 +688,7 @@ export const SYNC_DEFAULT_CONFIG_DEFINITIONS = {
|
|||
description: 'Object containing mute filters',
|
||||
type: 'object',
|
||||
default: {},
|
||||
}
|
||||
},
|
||||
}
|
||||
export const SYNC_DEFAULT_CONFIG = convertDefinitions(
|
||||
SYNC_DEFAULT_CONFIG_DEFINITIONS,
|
||||
|
|
@ -764,8 +764,14 @@ export const validateSetting = ({
|
|||
validateObjects = true,
|
||||
}) => {
|
||||
const path = fullPath.replace(/^simple./, '')
|
||||
if (validateObjects && definition.type === 'object' && path.split('.').length <= 1) {
|
||||
console.error(`attempt to set object ${fullPath} instead of its children. ignoring.`)
|
||||
if (
|
||||
validateObjects &&
|
||||
definition.type === 'object' &&
|
||||
path.split('.').length <= 1
|
||||
) {
|
||||
console.error(
|
||||
`attempt to set object ${fullPath} instead of its children. ignoring.`,
|
||||
)
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue