fix: handle default undefined value of select-with-custom during validation

This commit is contained in:
Viren070
2025-08-31 18:11:59 +01:00
parent a39a85b97b
commit 6acc26f987
+3
View File
@@ -653,6 +653,9 @@ function validateOption(
value: any,
decryptValues: boolean = false
): any {
if (typeof value === 'string' && value === 'undefined') {
value = undefined;
}
const forcedValue =
option.forced !== undefined && option.forced !== null
? option.forced