diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index fd3458bfd0..373611380d 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -120,7 +120,7 @@ def initialize_discussion_info(course): node[level]["entries"][entry["title"]] = {"id": entry["id"], "sort_key": entry["sort_key"]} - for topic, entry in course.metadata['discussion_topics'].items(): + for topic, entry in course.metadata.get('discussion_topics', {}).items(): category_map['entries'][topic] = {"id": entry["id"], "sort_key": entry.get("sort_key", topic)} diff --git a/lms/static/coffee/src/discussion/views/new_post_view.coffee b/lms/static/coffee/src/discussion/views/new_post_view.coffee index 1f04831250..a60ddbe248 100644 --- a/lms/static/coffee/src/discussion/views/new_post_view.coffee +++ b/lms/static/coffee/src/discussion/views/new_post_view.coffee @@ -45,7 +45,6 @@ class @NewPostView extends Backbone.View # change and 2) can't set in initialize because the button is hidden @maxNameWidth = @dropdownButton.width() * 0.9 - # Need a fat arrow because hideTopicDropdown is passed as a callback to bind hideTopicDropdown: () => @menuOpen = false