From ca52eb76ca2e286479f1803f399d5f5b563cfb41 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 2 Jan 2021 10:30:11 -0800 Subject: [PATCH] Fixed: Don't convert series selection filter to lower case in state --- .../src/InteractiveImport/Series/SelectSeriesModalContent.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.js b/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.js index 85a1b635a..170a426e7 100644 --- a/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.js +++ b/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.js @@ -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 ( @@ -68,7 +69,7 @@ class SelectSeriesModalContent extends Component { > { items.map((item) => { - return item.title.toLowerCase().includes(filter) ? + return item.title.toLowerCase().includes(filterLower) ? (