From 826f9dd7fcdd56149cff2fb00cca75a62cacb406 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Tue, 24 Jan 2023 20:26:21 +0100 Subject: [PATCH] Fix AlphaPicker movies library --- src/components/common/AlphaPickerContainer.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/common/AlphaPickerContainer.tsx b/src/components/common/AlphaPickerContainer.tsx index a2d647a4d9..6b7c9a0718 100644 --- a/src/components/common/AlphaPickerContainer.tsx +++ b/src/components/common/AlphaPickerContainer.tsx @@ -17,9 +17,15 @@ const AlphaPickerContainer: FC = ({ viewQuerySettings const newValue = (e as CustomEvent).detail.value; let updatedValue: React.SetStateAction; if (newValue === '#') { - updatedValue = {NameLessThan: 'A'}; + updatedValue = { + NameLessThan: 'A', + NameStartsWith: undefined + }; } else { - updatedValue = {NameStartsWith: newValue}; + updatedValue = { + NameLessThan: undefined, + NameStartsWith: newValue + }; } setViewQuerySettings((prevState) => ({ ...prevState,