Skip to content

Commit 2cf6344

Browse files
committed
Fix slice function that broke pagination
1 parent 2ec8b3e commit 2cf6344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function instantMeiliSearch(
7373
if (this.pagination) {
7474
const nbPage = page || 0
7575
const start = nbPage * this.hitsPerPage!
76-
const slicedMeiliSearchHits = meiliSearchHits.slice(
76+
const slicedMeiliSearchHits = meiliSearchHits.splice(
7777
start,
7878
this.hitsPerPage
7979
)

0 commit comments

Comments
 (0)