table.getRowModel throwing error

0: "reading and writing module 1"
1: "reading and writing module 2"
2: "math module 1"
3: "math module 2"


This is the console log I got for the options I sent via db here
interface DataTableFacetedFilterProps<TData, TValue> {
  column?: Column<TData, TValue>;
  title?: string;
  options: string[];
}
export function DataTableFacetedFilter<TData, TValue>({
  column,
  title,
  options,
}: DataTableFacetedFilterProps<TData, TValue>) {
  const facets = column?.getFacetedUniqueValues();
  const selectedValues = new Set(column?.getFilterValue() as string[]);


But using row.getRowModel() is throwing an error stating that filterValue.toLowerCase is not a function.

May I know how to fix this
Was this page helpful?