From df645f23842e9cce17f2e6651f15dd655ac61fdb Mon Sep 17 00:00:00 2001 From: Daniel Valenzuela Date: Sat, 31 Aug 2024 16:09:19 -0400 Subject: [PATCH] fix: by fetching course info again --- src/course-outline/hooks.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/course-outline/hooks.jsx b/src/course-outline/hooks.jsx index f820f3d0ed..cb98dd0456 100644 --- a/src/course-outline/hooks.jsx +++ b/src/course-outline/hooks.jsx @@ -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));