Skip to content

Commit 594b63b

Browse files
committed
Fix pagination
1 parent 88aeb22 commit 594b63b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter/search-response-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function adaptSearchResponse<T>(
3939
)
4040

4141
const nbPages = ceiledDivision(
42-
hits.length,
42+
searchResponse.hits.length,
4343
instantMeiliSearchContext.hitsPerPage
4444
)
4545

0 commit comments

Comments
 (0)