Skip to content

Commit d89ea76

Browse files
bors[bot]bidoubiwa
andauthored
Merge #273
273: Fix slice function that broke pagination r=bidoubiwa a=bidoubiwa `splice` became `slice` during the whole typescript process 🙃 Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents 2ec8b3e + 2cf6344 commit d89ea76

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)