Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will reload all sections after a subsection is updated. fixes the issue, but I think there could be a more elegant solution

});

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
Loading