Skip to content

Commit

Permalink
fix: reset search cursor before search
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxing9 committed Nov 19, 2024
1 parent 4c2b938 commit ed1abea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const SearchCountPagination = forwardRef<
JSON.stringify(searchQuery),
],
queryFn: async () => {
setSearchCursor(null);
const nextMap = await getNextIndex();
if (totalCount <= PaginationBuffer) {
return nextMap;
Expand Down

0 comments on commit ed1abea

Please sign in to comment.