diff --git a/apps/web/src/routes/_app/datahub/index.tsx b/apps/web/src/routes/_app/datahub/index.tsx index 2f27daa2b..632d6df5d 100644 --- a/apps/web/src/routes/_app/datahub/index.tsx +++ b/apps/web/src/routes/_app/datahub/index.tsx @@ -76,7 +76,7 @@ const Toggles: React.FC<{ table: TanstackTable.Table }> = ({ table }) = getExportRecords() .then((data): any => { const listedSubjects = table - .getRowModel() + .getPrePaginationRowModel() .rows.flatMap((row) => row.getVisibleCells().map((cell) => removeSubjectIdScope(cell.row.original.id))); const filteredData = data.filter((dataEntry) => listedSubjects.includes(dataEntry.subjectId));