Skip to content

Commit

Permalink
fix: remove redundant fetch to Courses
Browse files Browse the repository at this point in the history
  • Loading branch information
sergivalero20 committed Dec 9, 2024
1 parent 2b25709 commit 0943e4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/features/Courses/CoursesDetailPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import LinkWithQuery from 'features/Main/LinkWithQuery';
import CourseDetailTable from 'features/Courses/CourseDetailTable';

import { fetchClassesData } from 'features/Classes/data/thunks';
import { fetchCoursesData, fetchCoursesOptionsData } from 'features/Courses/data/thunks';
import { fetchCoursesOptionsData } from 'features/Courses/data/thunks';
import { fetchClassesDataSuccess, updateCurrentPage as updateClassesCurrentPage } from 'features/Classes/data/slice';
import { fetchCoursesDataSuccess, updateCurrentPage } from 'features/Courses/data/slice';

Expand Down Expand Up @@ -60,7 +60,6 @@ const CoursesDetailPage = () => {

if (institution.id) {
dispatch(fetchClassesData(institution.id, initialPage, courseIdDecoded));
dispatch(fetchCoursesData(institution.id, initialPage, null));
dispatch(fetchCoursesOptionsData(institution.id));
}

Expand Down

0 comments on commit 0943e4c

Please sign in to comment.