Skip to content

Commit

Permalink
fix: Column filter cas sensitive fix (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 authored Jan 8, 2025
1 parent e851785 commit e6814de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/Stream/components/Column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ const Column: FC<Column> = (props) => {
(e: ChangeEvent<HTMLInputElement>) => {
const searchStr = e.target.value.trim();
inputValueRef.current = searchStr;
const regexPattern = new RegExp(searchStr, 'i');
const matches = _.chain(uniqueValues)
.filter((uniqueValue) => regexPattern.test(uniqueValue))
.filter((uniqueValue) => uniqueValue.toLowerCase().includes(searchStr.toLowerCase()))
.value();
setFilteredValues(matches);
},
Expand Down

0 comments on commit e6814de

Please sign in to comment.