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

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;