diff --git a/src/app/rollupscan/batch/[batchIndex]/blocks/page.tsx b/src/app/rollupscan/batch/[batchIndex]/blocks/page.tsx index 7bafe304e..836fd1c40 100644 --- a/src/app/rollupscan/batch/[batchIndex]/blocks/page.tsx +++ b/src/app/rollupscan/batch/[batchIndex]/blocks/page.tsx @@ -26,6 +26,7 @@ const Blocks = () => { { { { - searchParams.set("page", newPage) - // setSearchParams(searchParams); - router.push(`${pathname}?${searchParams.toString()}}`) + const params = new URLSearchParams(searchParams.toString()) + params.set("page", newPage) + router.push(`${pathname}?${params.toString()}}`) onPaginationChange({ page: +searchParams.get("page"), pageSize: +searchParams.get("per_page"), diff --git a/src/hooks/useRollupInfo.ts b/src/hooks/useRollupInfo.ts index cc64a3ff5..626ebaccd 100644 --- a/src/hooks/useRollupInfo.ts +++ b/src/hooks/useRollupInfo.ts @@ -1,6 +1,7 @@ import useSWR from "swr" import { fetchBatchBlocksUrl, fetchBatchDetailUrl, fetchChunkBlocksUrl, fetchChunkListUrl, fetchLastBatchIndexesUrl } from "@/apis/rollupscan" +import { scrollRequest } from "@/utils/request" export enum BLOCK_LIST_TYPE { BATCH = "Batch",