From ed1abea3c0e0e685e836341f24cc486483a1a306 Mon Sep 17 00:00:00 2001 From: caoxing Date: Tue, 19 Nov 2024 22:13:51 +0800 Subject: [PATCH] fix: reset search cursor before search --- .../features/app/blocks/view/search/SearchCountPagination.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/nextjs-app/src/features/app/blocks/view/search/SearchCountPagination.tsx b/apps/nextjs-app/src/features/app/blocks/view/search/SearchCountPagination.tsx index 96ec0b226..508273037 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/search/SearchCountPagination.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/search/SearchCountPagination.tsx @@ -106,6 +106,7 @@ export const SearchCountPagination = forwardRef< JSON.stringify(searchQuery), ], queryFn: async () => { + setSearchCursor(null); const nextMap = await getNextIndex(); if (totalCount <= PaginationBuffer) { return nextMap;