1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-21 13:37:34 +00:00
This commit is contained in:
LASER-Yi 2022-04-27 10:40:35 +08:00
parent 9e2b2d8b00
commit 5f29baca34
No known key found for this signature in database
GPG key ID: BB28903D50A1D408

View file

@ -128,8 +128,9 @@ export function Selector<T = string, M extends boolean = false>(
onChange(values as SelectorValueType<T, M>);
} else {
const value = (newValue as OnChangeValue<SelectorOption<T>, false>)
?.value;
const value =
(newValue as OnChangeValue<SelectorOption<T>, false>)?.value ??
null;
onChange(value as SelectorValueType<T, M>);
}