Bring back Next button

This commit is contained in:
Viet Anh Nguyen 2024-03-12 13:10:50 +07:00
parent 0431aba8b8
commit db1469479e

View File

@ -290,7 +290,7 @@ const ReviewPage = () => {
const loadCurrentRequest = (requestIndex) => { const loadCurrentRequest = (requestIndex) => {
setLoading(true); setLoading(true);
fetchAllRequests(filterDateRange, filterSubsidiaries, filterReviewState, filterIncludeTests, requestIndex, 1).then((data) => { fetchAllRequests(filterDateRange, filterSubsidiaries, filterReviewState, filterIncludeTests, requestIndex, 2).then((data) => {
setRequests(data?.subscription_requests); setRequests(data?.subscription_requests);
setHasNextRequest(data?.subscription_requests.length > 1); setHasNextRequest(data?.subscription_requests.length > 1);
setTotalPages(data?.page?.total_requests); setTotalPages(data?.page?.total_requests);