FIX: Only cancel composer for when editing first post.

This commit is contained in:
Guo Xiang Tan 2015-09-17 09:24:02 +08:00
parent ec4a1bb2c4
commit bce8d0632a
1 changed files with 1 additions and 1 deletions

View File

@ -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);