mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
fix: [code-657]: fix page issue
This commit is contained in:
parent
baa4eb5ac9
commit
05c0c256c3
@ -56,7 +56,9 @@ export default function PullRequests() {
|
||||
const [page, setPage] = usePageIndex(pageInit)
|
||||
|
||||
useEffect(() => {
|
||||
updateQueryParams({ page: page.toString() })
|
||||
if (page > 1) {
|
||||
updateQueryParams({ page: page.toString() })
|
||||
}
|
||||
}, [setPage]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
const { repoMetadata, error, loading, refetch } = useGetRepositoryMetadata()
|
||||
|
Loading…
x
Reference in New Issue
Block a user