Skip to content

Commit

Permalink
fix: paginate infinite scroll and virtualize list
Browse files Browse the repository at this point in the history
  • Loading branch information
vincehi committed Oct 16, 2023
1 parent 974c077 commit fe84784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FilesTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const FilesTable: Component = () => {
const virtualItems = rowVirtualizer.getVirtualItems();
if (
last<any>(virtualItems)?.index >= table.getRowModel().rows.length &&
table.getRowModel().rows.length < files()?.metadata.total_count!
table.getRowModel().rows.length < files()?.metadata.total_count
) {
void refetch();
}
Expand Down

0 comments on commit fe84784

Please sign in to comment.