diff --git a/src/utils/clones.js b/src/utils/clones.js index c79e440..8f54f80 100644 --- a/src/utils/clones.js +++ b/src/utils/clones.js @@ -41,8 +41,9 @@ export function getClonesCount({ }) { const clonesCount = infinite ? { - head: partialPageSize || particlesToShow, - tail: particlesToShow, + // need to round with ceil as particlesToShow, particlesToShow can be floating (e.g. 1.5, 3.75) + head: Math.ceil(partialPageSize || particlesToShow), + tail: Math.ceil(particlesToShow), } : { head: 0, tail: 0,