Skip to content

Commit 56ab163

Browse files
committed
fix(paginator): empty when count equals button
1 parent 8d77f9e commit 56ab163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composables/paginator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function usePaginator<T, P, U = T>(
6767
if (!result.done && result.value.length) {
6868
const preprocessedItems = preprocess([...nextItems.value, ...result.value] as (U | T)[])
6969
const itemsToShowCount
70-
= preprocessedItems.length < buffer
70+
= preprocessedItems.length <= buffer
7171
? preprocessedItems.length
7272
: preprocessedItems.length - buffer
7373
;(nextItems.value as U[]) = preprocessedItems.slice(itemsToShowCount)

0 commit comments

Comments
 (0)