Skip to content

Commit 9939244

Browse files
committed
fix formatting
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent f9b3574 commit 9939244

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/components/Results/Submission.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ export default {
160160
&& question.extraSettings.questionType === 'radio'
161161
) {
162162
squashedAnswers = Object.keys(gridValue)
163-
.filter((key) => optionsPerId[key] && optionsPerId[gridValue[key]])
163+
.filter(
164+
(key) =>
165+
optionsPerId[key]
166+
&& optionsPerId[gridValue[key]],
167+
)
164168
.map((key) => {
165169
return (
166170
optionsPerId[key].text
@@ -174,16 +178,17 @@ export default {
174178
&& question.extraSettings.questionType === 'checkbox'
175179
) {
176180
squashedAnswers = Object.keys(gridValue)
177-
.filter((key) => optionsPerId[key] && Array.isArray(gridValue[key]))
181+
.filter(
182+
(key) =>
183+
optionsPerId[key]
184+
&& Array.isArray(gridValue[key]),
185+
)
178186
.map((key) => {
179187
return (
180188
optionsPerId[key].text
181189
+ ': '
182190
+ gridValue[key]
183-
.filter(
184-
(optionId) =>
185-
optionsPerId[optionId],
186-
)
191+
.filter((optionId) => optionsPerId[optionId])
187192
.map(
188193
(optionId) =>
189194
optionsPerId[optionId].text,

0 commit comments

Comments
 (0)