Fixed: Don't convert series selection filter to lower case in state

This commit is contained in:
Mark McDowall 2021-01-02 10:30:11 -08:00
parent 37501094d7
commit ca52eb76ca
1 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class SelectSeriesModalContent extends Component {
// Listeners // Listeners
onFilterChange = ({ value }) => { onFilterChange = ({ value }) => {
this.setState({ filter: value.toLowerCase() }); this.setState({ filter: value });
} }
// //
@ -42,6 +42,7 @@ class SelectSeriesModalContent extends Component {
} = this.props; } = this.props;
const filter = this.state.filter; const filter = this.state.filter;
const filterLower = filter.toLowerCase();
return ( return (
<ModalContent onModalClose={onModalClose}> <ModalContent onModalClose={onModalClose}>
@ -68,7 +69,7 @@ class SelectSeriesModalContent extends Component {
> >
{ {
items.map((item) => { items.map((item) => {
return item.title.toLowerCase().includes(filter) ? return item.title.toLowerCase().includes(filterLower) ?
( (
<SelectSeriesRow <SelectSeriesRow
key={item.id} key={item.id}