Skip to content

Commit

Permalink
#837: frequency table search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aschonfeld committed Jan 31, 2024
1 parent 8c65f41 commit 5fa9f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/static/popups/describe/FrequencyGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const FrequencyGrid: React.FC<FrequencyGridProps & WithTranslation> = ({ t, fetc
const filteredData = React.useMemo(() => {
const filterVal = filters[selectedCol];
if (filterVal) {
return frequencyGridRows.filter((row) => row[selectedCol].toLowerCase().startsWith(filterVal.toLowerCase()));
return frequencyGridRows.filter((row) => `${row[selectedCol]}`.toLowerCase().startsWith(filterVal.toLowerCase()));
}
return frequencyGridRows;
}, [frequencyGridRows, filters]);
Expand Down

0 comments on commit 5fa9f20

Please sign in to comment.