FIX: restore category when opening draft
This commit is contained in:
parent
f1a9e52d7e
commit
dd7fa2d946
|
@ -306,8 +306,10 @@ Discourse.ComposerController = Discourse.Controller.extend({
|
|||
}
|
||||
}
|
||||
|
||||
composer = composer || Discourse.Composer.create();
|
||||
composer.open(opts);
|
||||
if ( !composer ) {
|
||||
composer = Discourse.Composer.create();
|
||||
composer.open(opts);
|
||||
}
|
||||
|
||||
this.set('model', composer);
|
||||
composer.set('composeState', Discourse.Composer.OPEN);
|
||||
|
|
Loading…
Reference in New Issue