mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #3780 from tgxworld/fix_mistake
FIX: Only cancel composer for when editing first post.
This commit is contained in:
commit
28d3260b30
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue