Skip to content

Commit

Permalink
feat(unit-links): Reconfigure course outline api call
Browse files Browse the repository at this point in the history
Re-configuring the api call for the course outline in order to show the vertical pages on the outline page.
  • Loading branch information
JackSteele24 authored and becdavid committed Jun 6, 2024
1 parent a5fcf14 commit 3f7a78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/course_home_api/outline/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3f7a78c

Please sign in to comment.