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

Fix bug on new post creation
This commit is contained in:
Brian Jacobel
2016-12-15 13:50:10 -05:00
committed by GitHub

View File

@@ -156,9 +156,11 @@
this.$('.inline-thread').addClass('is-hidden');
// Delete the thread view
this.threadView.$el.empty().off();
this.threadView.stopListening();
this.threadView = null;
if (this.threadView) {
this.threadView.$el.empty().off();
this.threadView.stopListening();
this.threadView = null;
}
// Show the thread list view
this.threadListView.$el.removeClass('is-hidden');