From 3f7a78cba28d278728db13d7348e9a3917f976b9 Mon Sep 17 00:00:00 2001 From: JackSteele24 Date: Mon, 1 Apr 2024 15:39:33 -0400 Subject: [PATCH] feat(unit-links): Reconfigure course outline api call Re-configuring the api call for the course outline in order to show the vertical pages on the outline page. --- lms/djangoapps/course_home_api/outline/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/course_home_api/outline/serializers.py b/lms/djangoapps/course_home_api/outline/serializers.py index 9c739fa37904..f73f0b933920 100644 --- a/lms/djangoapps/course_home_api/outline/serializers.py +++ b/lms/djangoapps/course_home_api/outline/serializers.py @@ -20,7 +20,7 @@ class CourseBlockSerializer(serializers.Serializer): def get_blocks(self, block): # pylint: disable=missing-function-docstring block_key = block['id'] block_type = block['type'] - children = block.get('children', []) if block_type != 'sequential' else [] # Don't descend past sequential + children = block.get('children', []) if block_type != 'vertical' else [] # Don't descend past vertical description = block.get('format') display_name = block['display_name'] enable_links = self.context.get('enable_links')