From ede6752619d08f19a41484e10dc7ebdca453d142 Mon Sep 17 00:00:00 2001 From: angusmcleod Date: Wed, 20 Oct 2021 22:00:30 +0800 Subject: [PATCH] Apply prettier --- .../discourse/components/wizard-mapper-selector.js.es6 | 8 ++------ assets/javascripts/discourse/lib/wizard-mapper.js.es6 | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 b/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 index 806e4072..8a2ae9ce 100644 --- a/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 +++ b/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 @@ -24,11 +24,7 @@ const customFieldActionMap = { user: ["update_profile"], }; -const values = [ - "present", - "true", - "false" -]; +const values = ["present", "true", "false"]; export default Component.extend({ classNameBindings: [":mapper-selector", "activeType"], @@ -284,7 +280,7 @@ export default Component.extend({ if (activeType === "value") { content = values.map((value) => ({ id: value, - name: value + name: value, })); } diff --git a/assets/javascripts/discourse/lib/wizard-mapper.js.es6 b/assets/javascripts/discourse/lib/wizard-mapper.js.es6 index 9c4c3a1c..c398eaf4 100644 --- a/assets/javascripts/discourse/lib/wizard-mapper.js.es6 +++ b/assets/javascripts/discourse/lib/wizard-mapper.js.es6 @@ -105,7 +105,7 @@ const selectionTypes = [ "tag", "user", "customField", - "value" + "value", ]; function defaultSelectionType(inputType, options = {}, connector = null) {