Compare commits

..

No commits in common. "5ea09c2502f1b652a053f36e0fa5a6304c31d1be" and "276caef91b8755cd9d485e3c0ce6dd72325837a9" have entirely different histories.

View file

@ -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}`