mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue