From 5cdb5f809e1013597744a3dc1c6f19df681e6ac2 Mon Sep 17 00:00:00 2001 From: Sergio Valero Date: Wed, 27 Nov 2024 16:10:54 -0400 Subject: [PATCH] fix: license inventory pagination --- src/features/Licenses/LicensesDetailPage/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/Licenses/LicensesDetailPage/index.jsx b/src/features/Licenses/LicensesDetailPage/index.jsx index 463517f..9185af3 100644 --- a/src/features/Licenses/LicensesDetailPage/index.jsx +++ b/src/features/Licenses/LicensesDetailPage/index.jsx @@ -48,14 +48,14 @@ const LicensesDetailPage = () => { useEffect(() => { if (institution.id) { - dispatch(fetchCoursesData(institution.id, initialPage, { license_id: licenseId })); + dispatch(fetchCoursesData(institution.id, currentPage, { license_id: licenseId })); dispatch(fetchLicensesData(institution.id, initialPage, licenseId)); } return () => { dispatch(resetCoursesTable()); }; - }, [dispatch, institution.id, licenseId]); + }, [dispatch, institution.id, licenseId, currentPage]); useEffect(() => { if (institution.id !== undefined && institutionRef.current === undefined) {