FIX: Opening new topic draft never creates post (#8828)

This commit is contained in:
Mark VanLandingham 2020-02-05 11:17:58 -06:00 committed by GitHub
parent 6bee972a5c
commit 49c750ca78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;