fixup: don't constrain unset values
This commit is contained in:
parent
c31495c283
commit
0b57fa4810
|
@ -59,6 +59,7 @@ function configDialog(style) {
|
||||||
error = `${va.name}: type '${va.type}' != '${bgva.type}'`;
|
error = `${va.name}: type '${va.type}' != '${bgva.type}'`;
|
||||||
} else
|
} else
|
||||||
if ((va.type === 'select' || va.type === 'dropdown') &&
|
if ((va.type === 'select' || va.type === 'dropdown') &&
|
||||||
|
va.value !== null && va.value !== undefined &&
|
||||||
bgva.options.every(o => o.name !== va.value)) {
|
bgva.options.every(o => o.name !== va.value)) {
|
||||||
error = `${va.name}: '${va.value}' not in the updated '${va.type}' list`;
|
error = `${va.name}: '${va.value}' not in the updated '${va.type}' list`;
|
||||||
} else if (!va.dirty) {
|
} else if (!va.dirty) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user