mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 22:45:27 +00:00
FIX: Opening new topic draft never creates post (#8828)
This commit is contained in:
parent
6bee972a5c
commit
49c750ca78
@ -912,6 +912,10 @@ const Composer = RestModel.extend({
|
||||
},
|
||||
|
||||
createPost(opts) {
|
||||
if (this.action === CREATE_TOPIC) {
|
||||
this.set("topic", null);
|
||||
}
|
||||
|
||||
const post = this.post;
|
||||
const topic = this.topic;
|
||||
const user = this.user;
|
||||
|
Loading…
x
Reference in New Issue
Block a user