Skip to content

Commit fe84784

Browse files
committed
fix: paginate infinite scroll and virtualize list
1 parent 974c077 commit fe84784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FilesTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const FilesTable: Component = () => {
150150
const virtualItems = rowVirtualizer.getVirtualItems();
151151
if (
152152
last<any>(virtualItems)?.index >= table.getRowModel().rows.length &&
153-
table.getRowModel().rows.length < files()?.metadata.total_count!
153+
table.getRowModel().rows.length < files()?.metadata.total_count
154154
) {
155155
void refetch();
156156
}

0 commit comments

Comments
 (0)