diff --git a/assets/javascripts/discourse/controllers/admin-wizards-submissions-show.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-submissions-show.js.es6 index bddc1cfb..41dabbb4 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-submissions-show.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-submissions-show.js.es6 @@ -20,7 +20,7 @@ export default Controller.extend({ CustomWizardAdmin.submissions(wizardId, page) .then((result) => { if (result.submissions) { - const { fields, submissions } = formatModel(result); + const { submissions } = formatModel(result); this.get("submissions").pushObjects(submissions); } diff --git a/assets/javascripts/discourse/lib/wizard-submission.js.es6 b/assets/javascripts/discourse/lib/wizard-submission.js.es6 index 62de96c1..8fa2a3be 100644 --- a/assets/javascripts/discourse/lib/wizard-submission.js.es6 +++ b/assets/javascripts/discourse/lib/wizard-submission.js.es6 @@ -2,7 +2,11 @@ import EmberObject from "@ember/object"; function formatModel(model) { let fields = [ - EmberObject.create({ id: "submitted_at", label: "Submitted At", enabled: true }), + EmberObject.create({ + id: "submitted_at", + label: "Submitted At", + enabled: true, + }), EmberObject.create({ id: "username", label: "User", enabled: true }), ]; let submissions = []; @@ -32,6 +36,4 @@ function formatModel(model) { return { fields, submissions }; } -export { - formatModel -} +export { formatModel }; diff --git a/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 b/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 index de4bd986..65c7aa7f 100644 --- a/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 +++ b/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 @@ -215,8 +215,8 @@ CustomWizardAdmin.reopenClass({ return ajax(`/admin/wizards/submissions/${wizardId}`, { type: "GET", data: { - page - } + page, + }, }).catch(popupAjaxError); }, diff --git a/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 b/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 index 750e0d9f..b616b5be 100644 --- a/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 +++ b/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 @@ -9,7 +9,7 @@ export default DiscourseRoute.extend({ }, setupController(controller, model) { - const { fields, submissions } = formatModel(model); + const { fields, submissions } = formatModel(model); controller.setProperties({ wizard: model.wizard,