Merge pull request #3780 from tgxworld/fix_mistake

FIX: Only cancel composer for when editing first post.
This commit is contained in:
Régis Hanol 2015-09-17 09:58:46 +02:00
commit 28d3260b30
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);