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

pull/4193/head
Mark McDowall 4 years ago
parent 37501094d7
commit ca52eb76ca

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

Loading…
Cancel
Save