Skip to content

Commit

Permalink
Merge pull request #131 from Pearson-Advance/vue/PADV-1885
Browse files Browse the repository at this point in the history
PADV-1885 - Fix license inventory pagination
  • Loading branch information
sergivalero20 authored Nov 28, 2024
2 parents 522d0ac + 5cdb5f8 commit 77603fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/Licenses/LicensesDetailPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 77603fd

Please sign in to comment.