Skip to content

Commit 9a55a41

Browse files
committed
fixup! fix: show correct icons in the sidebar for units with custom XBlocks
1 parent e422e2a commit 9a55a41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lms/djangoapps/course_home_api/outline/serializers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ def get_vertical_icon_class(block):
8282
video
8383
"""
8484
children = block.get('children', [])
85-
child_classes = {value for child in children for value in (child.get('type'), child.get('icon_class'))}
85+
child_classes = {
86+
value
87+
for child in children
88+
for value in (child.get('type'), child.get('icon_class'))
89+
}
8690
if 'problem' in child_classes:
8791
return 'problem'
8892
if 'video' in child_classes:

0 commit comments

Comments
 (0)