Skip to content

Commit

Permalink
tables
Browse files Browse the repository at this point in the history
  • Loading branch information
karenl03 committed Apr 28, 2024
1 parent 275d945 commit 738e26d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/components/tables/FilteringTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ interface Column {

interface Row {
[key: string]: number | string;
id: number;
date: string;
amount: number;
donor_id: string;
Expand Down Expand Up @@ -84,7 +83,7 @@ function FilteringTable({
};

// Apply the search filter first
const searchedRows = rows.filter((row) => {
const searchedRows = initialRows.filter((row) => {
// Convert all row values to string and lowercase, then check if they include the search term
return Object.values(row).some((value) =>
value.toString().toLowerCase().includes(searchTerm),
Expand Down

0 comments on commit 738e26d

Please sign in to comment.