Skip to content

Commit

Permalink
Handle null data passed in for DataTable (#10643)
Browse files Browse the repository at this point in the history
  • Loading branch information
hdiniz authored Sep 6, 2024
1 parent c63aaa4 commit 53ca078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function DataTable<TData, TValue>({
);

const table = useReactTable<TData>({
data,
data: data || [],
columns,
getCoreRowModel: getCoreRowModel(),
onSortingChange: setSorting,
Expand Down

0 comments on commit 53ca078

Please sign in to comment.