summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2022-04-27 10:40:35 +0800
committerLASER-Yi <[email protected]>2022-04-27 10:40:35 +0800
commit5f29baca34adcbc96ef5fac74fe38996ae813f26 (patch)
treebdded1c06944bd76b8a51f6d738cece282b21296
parent9e2b2d8b00204fb1af170cc39e3c9092101205fe (diff)
downloadbazarr-5f29baca34adcbc96ef5fac74fe38996ae813f26.tar.gz
bazarr-5f29baca34adcbc96ef5fac74fe38996ae813f26.zip
-rw-r--r--frontend/src/components/inputs/Selector.tsx5
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>);
}