mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 22:34:43 +08:00
FIX: Only cancel composer for when editing first post.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user