diff options
author | LASER-Yi <[email protected]> | 2022-04-27 10:40:35 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2022-04-27 10:40:35 +0800 |
commit | 5f29baca34adcbc96ef5fac74fe38996ae813f26 (patch) | |
tree | bdded1c06944bd76b8a51f6d738cece282b21296 | |
parent | 9e2b2d8b00204fb1af170cc39e3c9092101205fe (diff) | |
download | bazarr-5f29baca34adcbc96ef5fac74fe38996ae813f26.tar.gz bazarr-5f29baca34adcbc96ef5fac74fe38996ae813f26.zip |
Fix #1817v1.0.4-beta.28
-rw-r--r-- | frontend/src/components/inputs/Selector.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/inputs/Selector.tsx b/frontend/src/components/inputs/Selector.tsx index 98ea9eeb3..fa08e77da 100644 --- a/frontend/src/components/inputs/Selector.tsx +++ b/frontend/src/components/inputs/Selector.tsx @@ -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>); } |