From 8d6b9bf0580ca1079e690a9a969bfbe6b820ef3a 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 25b9d8bedd..93996a2239 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));