Skip to content

Commit 69f779c

Browse files
committed
fix: adjust listSubjects filter to include all data instead of a single page
1 parent 9e17f2c commit 69f779c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/routes/_app/datahub/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const Toggles: React.FC<{ table: TanstackTable.Table<Subject> }> = ({ table }) =
7676
getExportRecords()
7777
.then((data): any => {
7878
const listedSubjects = table
79-
.getRowModel()
79+
.getPrePaginationRowModel()
8080
.rows.flatMap((row) => row.getVisibleCells().map((cell) => removeSubjectIdScope(cell.row.original.id)));
8181

8282
const filteredData = data.filter((dataEntry) => listedSubjects.includes(dataEntry.subjectId));

0 commit comments

Comments
 (0)