Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-07-12 10:41:10 +02:00
parent 7c43e03b31
commit f730c9d1b5
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
3 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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++

View file

@ -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)
}, },
}, },