From bce8d0632add01859e99d2126be380bcafcd62d1 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 17 Sep 2015 09:24:02 +0800 Subject: [PATCH] FIX: Only cancel composer for when editing first post. --- app/assets/javascripts/discourse/controllers/topic.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6 index a98323b4a22..58e468e93f7 100644 --- a/app/assets/javascripts/discourse/controllers/topic.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic.js.es6 @@ -217,7 +217,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, { }; // Cancel and reopen the composer for the first post - if (composerModel && (post.get('firstPost') || composerModel.get('editingPost'))) { + if (composerModel && (post.get('firstPost') || composerModel.get('editingFirstPost'))) { composer.cancelComposer().then(() => composer.open(opts)); } else { composer.open(opts);