Skip to content

Commit 436400d

Browse files
committed
Export all pages of tables
1 parent fd74852 commit 436400d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/dashboard/src/components/data-table/elements

apps/dashboard/src/components/data-table/elements/toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function DataTableToolbar<TData>({
6969
};
7070

7171

72-
const rowModel = table.getRowModel();
72+
const rowModel = table.getCoreRowModel();
7373
const rows = rowModel.rows.map(row => Object.fromEntries(row.getAllCells().map(c => [c.column.id, renderCellValue(c)]).filter(([_, v]) => v !== undefined)));
7474
console.log(table.getAllColumns());
7575
if (rows.length === 0) {

0 commit comments

Comments
 (0)