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 Aug 31, 2024
1 parent d99a09e commit 8d6b9bf
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));
});
break;
case COURSE_BLOCK_NAMES.vertical.id:
dispatch(configureCourseUnitQuery(currentItem.id, currentSection.id, ...arg));
Expand Down

0 comments on commit 8d6b9bf

Please sign in to comment.