Skip to content

Commit

Permalink
fix(table): make sure Record<string, any> gets converted to a string (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gasp authored May 27, 2024
1 parent 82c78a5 commit a745db8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/accessories/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,10 @@ const Table: FunctionComponent<IProps> = ({
result = removeRowWhere(result, (row) =>
filter.value === undefined
? false
: !(row[field.key] as string)
?.toLowerCase()
?.includes(filter.value.toString().toLowerCase())
: !row[field.key]
?.toString()
.toLowerCase()
.includes(filter.value.toString().toLowerCase())
);
break;

Expand Down

0 comments on commit a745db8

Please sign in to comment.