Skip to content

Commit

Permalink
fix: cast renderCellValue to string to highlight value (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolapog authored Oct 27, 2023
1 parent 0cfcba0 commit 082c2b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const MRT_TableBodyCellValue = <TData extends MRT_RowData>({
if (
enableFilterMatchHighlighting &&
columnDef.enableFilterMatchHighlighting !== false &&
renderedCellValue &&
String(renderedCellValue) &&
allowedTypes.includes(typeof renderedCellValue) &&
((filterValue &&
allowedTypes.includes(typeof filterValue) &&
Expand Down

0 comments on commit 082c2b5

Please sign in to comment.