We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d75f6 commit 27f7aadCopy full SHA for 27f7aad
src/components/PaginatedTable/useScrollBasedChunks.ts
@@ -85,7 +85,7 @@ export const useScrollBasedChunks = ({
85
// 0 items represent inactive chunk
86
const chunks = Array(chunksCount).fill(0);
87
for (let i = startChunk; i <= endChunk; i++) {
88
- chunks[i] = endChunk === chunksCount - 1 ? totalItems % chunkSize : chunkSize;
+ chunks[i] = i === chunksCount - 1 ? totalItems % chunkSize : chunkSize;
89
}
90
91
return chunks;
0 commit comments