Skip to content

Commit

Permalink
fix: wrong conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
viadanna committed Sep 4, 2024
1 parent 2e6f55f commit d2e1997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/discussions/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _update_course_configuration(
}
# toogle discussion tab is_hidden
for tab in course.tabs:
if tab.tab_id == 'discussion' and tab.is_hidden != instance.enabled:
if tab.tab_id == 'discussion' and tab.is_hidden == instance.enabled:
tab.is_hidden = not instance.enabled
save = True
break
Expand Down

0 comments on commit d2e1997

Please sign in to comment.