Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update prereq state for all #64

Draft
wants to merge 1 commit into
base: asu-moe/redwood-css
Choose a base branch
from
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