Skip to content

Commit

Permalink
fix: license inventory pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
sergivalero20 committed Nov 27, 2024
1 parent 522d0ac commit 5cdb5f8
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 5cdb5f8

Please sign in to comment.