mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
fix(paginator): empty when count equals button
This commit is contained in:
parent
8d77f9e9fb
commit
56ab163369
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ export function usePaginator<T, P, U = T>(
|
|||
if (!result.done && result.value.length) {
|
||||
const preprocessedItems = preprocess([...nextItems.value, ...result.value] as (U | T)[])
|
||||
const itemsToShowCount
|
||||
= preprocessedItems.length < buffer
|
||||
= preprocessedItems.length <= buffer
|
||||
? preprocessedItems.length
|
||||
: preprocessedItems.length - buffer
|
||||
;(nextItems.value as U[]) = preprocessedItems.slice(itemsToShowCount)
|
||||
|
|
Loading…
Reference in a new issue