Compare commits
No commits in common. "5ea09c2502f1b652a053f36e0fa5a6304c31d1be" and "276caef91b8755cd9d485e3c0ce6dd72325837a9" have entirely different histories.
5ea09c2502
...
276caef91b
1 changed files with 1 additions and 2 deletions
|
|
@ -763,8 +763,6 @@ export const validateSetting = ({
|
|||
defaultState,
|
||||
validateObjects = true,
|
||||
}) => {
|
||||
if (value === undefined) return undefined // only null is allowed as missing value
|
||||
if (definition === undefined) return undefined // invalid definition
|
||||
const path = fullPath.replace(/^simple./, '')
|
||||
if (
|
||||
validateObjects &&
|
||||
|
|
@ -783,6 +781,7 @@ export const validateSetting = ({
|
|||
console.log(path)
|
||||
console.log('====')
|
||||
}
|
||||
if (value === undefined) return undefined // only null is allowed as missing value
|
||||
if (get(defaultState, path.split('.')[0]) === undefined) {
|
||||
const string = `Unknown option ${fullPath}, value: ${value}`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue