From dfd382cd8affc344ff4049cec695580df35dc8b1 Mon Sep 17 00:00:00 2001 From: angusmcleod Date: Mon, 12 Jul 2021 16:01:52 +0800 Subject: [PATCH] Apply prettier --- .../routes/admin-wizards-submissions-show.js.es6 | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 7d8e2cf5..73168ff3 100644 --- a/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 +++ b/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 @@ -1,11 +1,7 @@ import CustomWizard from "../models/custom-wizard"; import DiscourseRoute from "discourse/routes/discourse"; -const excludedMetaFields = [ - 'route_to', - 'redirect_on_complete', - 'redirect_to' -]; +const excludedMetaFields = ["route_to", "redirect_on_complete", "redirect_to"]; export default DiscourseRoute.extend({ model(params) { @@ -14,9 +10,7 @@ export default DiscourseRoute.extend({ setupController(controller, model) { if (model && model.submissions) { - let fields = [ - 'username' - ]; + let fields = ["username"]; model.submissions.forEach((s) => { Object.keys(s.fields).forEach((k) => { if (!excludedMetaFields.includes(k) && fields.indexOf(k) < 0) { @@ -28,7 +22,7 @@ export default DiscourseRoute.extend({ let submissions = []; model.submissions.forEach((s) => { let submission = { - username: s.username + username: s.username, }; Object.keys(s.fields).forEach((f) => { if (fields.includes(f)) {