Skip to content

Commit

Permalink
fix: by fetching course info again
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVZ96 committed Sep 5, 2024
1 parent 33b5897 commit df645f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/course-outline/hooks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ const useCourseOutline = ({ courseId }) => {
dispatch(configureCourseSectionQuery(currentSection.id, ...arg));
break;
case COURSE_BLOCK_NAMES.sequential.id:
dispatch(configureCourseSubsectionQuery(currentItem.id, currentSection.id, ...arg));
dispatch(configureCourseSubsectionQuery(currentItem.id, currentSection.id, ...arg)).then(() => {
dispatch(fetchCourseOutlineIndexQuery(courseId));

Check failure on line 191 in src/course-outline/hooks.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 8 spaces but found 10
});

Check failure on line 192 in src/course-outline/hooks.jsx

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 6 spaces but found 8
break;
case COURSE_BLOCK_NAMES.vertical.id:
dispatch(configureCourseUnitQuery(currentItem.id, currentSection.id, ...arg));
Expand Down

0 comments on commit df645f2

Please sign in to comment.