mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: handle default undefined value of select-with-custom during validation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user