diff options
-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>); } |