Commit c1cf4e78 by Brian Jacobel Committed by GitHub

Merge pull request #14155 from edx/bjacobel/inline-discussion-redesign

Fix bug on new post creation 
parents fd9c26b1 0e5f6c2e
...@@ -156,9 +156,11 @@ ...@@ -156,9 +156,11 @@
this.$('.inline-thread').addClass('is-hidden'); this.$('.inline-thread').addClass('is-hidden');
// Delete the thread view // Delete the thread view
this.threadView.$el.empty().off(); if (this.threadView) {
this.threadView.stopListening(); this.threadView.$el.empty().off();
this.threadView = null; this.threadView.stopListening();
this.threadView = null;
}
// Show the thread list view // Show the thread list view
this.threadListView.$el.removeClass('is-hidden'); this.threadListView.$el.removeClass('is-hidden');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment