Lint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
7c43e03b31
commit
f730c9d1b5
|
@ -91,9 +91,9 @@ export default {
|
||||||
const squashedAnswers = answers.map(answer => answer.text).join('; ')
|
const squashedAnswers = answers.map(answer => answer.text).join('; ')
|
||||||
|
|
||||||
answeredQuestionsArray.push({
|
answeredQuestionsArray.push({
|
||||||
'id': question.id,
|
id: question.id,
|
||||||
'text': question.text,
|
text: question.text,
|
||||||
'squashedAnswers': squashedAnswers,
|
squashedAnswers,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return answeredQuestionsArray
|
return answeredQuestionsArray
|
||||||
|
|
|
@ -109,9 +109,9 @@ export default {
|
||||||
const optionsStatIndex = questionOptionsStats.findIndex(option => option.text === answer.text)
|
const optionsStatIndex = questionOptionsStats.findIndex(option => option.text === answer.text)
|
||||||
if (optionsStatIndex < 0) {
|
if (optionsStatIndex < 0) {
|
||||||
questionOptionsStats.push({
|
questionOptionsStats.push({
|
||||||
'text': answer.text,
|
text: answer.text,
|
||||||
'count': 1,
|
count: 1,
|
||||||
'percentage': 0,
|
percentage: 0,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
questionOptionsStats[optionsStatIndex].count++
|
questionOptionsStats[optionsStatIndex].count++
|
||||||
|
|
|
@ -215,7 +215,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Update Window-Title on title change
|
// Update Window-Title on title change
|
||||||
'form.title': function() {
|
'form.title'() {
|
||||||
SetWindowTitle(this.formTitle)
|
SetWindowTitle(this.formTitle)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue