FIX: prevents exception when opening new topic on mobile
Repro: - Visit https://meta.discourse.org/categories, refresh the page - Navigate to Latest - Click New Topic - Error occurs
This commit is contained in:
parent
e7b732ad95
commit
b1593c0184
|
@ -7,8 +7,8 @@ export default Ember.Mixin.create({
|
|||
this.controllerFor('composer').open({
|
||||
categoryId: controller.get('category.id'),
|
||||
action: Composer.CREATE_TOPIC,
|
||||
draftKey: controller.get('model.draft_key'),
|
||||
draftSequence: controller.get('model.draft_sequence')
|
||||
draftKey: controller.get('model.draft_key') || Composer.CREATE_TOPIC,
|
||||
draftSequence: controller.get('model.draft_sequence') || 0
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue