T
TanStack14mo ago
helpful-purple

table.getRowModel throwing error

0: "reading and writing module 1"
1: "reading and writing module 2"
2: "math module 1"
3: "math module 2"
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[]);
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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?