1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #4303 from jellyfin/alphapicker

This commit is contained in:
Bill Thornton 2023-01-24 15:02:30 -05:00 committed by GitHub
commit 9e3c54f44d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,9 +17,15 @@ const AlphaPickerContainer: FC<AlphaPickerContainerProps> = ({ viewQuerySettings
const newValue = (e as CustomEvent).detail.value; const newValue = (e as CustomEvent).detail.value;
let updatedValue: React.SetStateAction<ViewQuerySettings>; let updatedValue: React.SetStateAction<ViewQuerySettings>;
if (newValue === '#') { if (newValue === '#') {
updatedValue = {NameLessThan: 'A'}; updatedValue = {
NameLessThan: 'A',
NameStartsWith: undefined
};
} else { } else {
updatedValue = {NameStartsWith: newValue}; updatedValue = {
NameLessThan: undefined,
NameStartsWith: newValue
};
} }
setViewQuerySettings((prevState) => ({ setViewQuerySettings((prevState) => ({
...prevState, ...prevState,