From 0b57fa48104f75c58930910dd92529d4666dfd7d Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 27 Nov 2017 15:22:49 +0300 Subject: [PATCH] fixup: don't constrain unset values --- manage/config-dialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/manage/config-dialog.js b/manage/config-dialog.js index 09e1f22f..d141f5ca 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -59,6 +59,7 @@ function configDialog(style) { error = `${va.name}: type '${va.type}' != '${bgva.type}'`; } else if ((va.type === 'select' || va.type === 'dropdown') && + va.value !== null && va.value !== undefined && bgva.options.every(o => o.name !== va.value)) { error = `${va.name}: '${va.value}' not in the updated '${va.type}' list`; } else if (!va.dirty) {