mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:56:36 +08:00
Revert "FIX: restore category when opening draft"
This reverts commit dd7fa2d946
.
Unfortunately this introduced a regression where editing a post, then
replying soon after would leave you in edit mode.
This commit is contained in:
parent
067b220a62
commit
97aa2c8dfe
|
@ -306,10 +306,8 @@ Discourse.ComposerController = Discourse.Controller.extend({
|
|||
}
|
||||
}
|
||||
|
||||
if ( !composer ) {
|
||||
composer = Discourse.Composer.create();
|
||||
composer.open(opts);
|
||||
}
|
||||
composer = composer || Discourse.Composer.create();
|
||||
composer.open(opts);
|
||||
|
||||
this.set('model', composer);
|
||||
composer.set('composeState', Discourse.Composer.OPEN);
|
||||
|
|
Loading…
Reference in New Issue
Block a user