CSR-803: remove unneeded property

This commit is contained in:
Adam Caouette 2022-09-13 15:17:59 -04:00
parent 325a0e24c3
commit 0ed0566395

View file

@ -41,12 +41,10 @@ export default {
await useValidateForm(); // do a test validation check, without triggering full validation
this.questionData.map((q, i) => {
let answerPair = [];
const question = {
questionText: q.questionText,
questionSequence: q.questionSequence,
answers: q.answers.map((a) => {
answerPair.push(a.nextQuestionSequence ? a.nextQuestionSequence : a.answerResult);
return {
Text: a.answerText,
// Name will either be nextQuestionSequence or answerResult
@ -65,7 +63,6 @@ export default {
}),
answerSelected: q.answerSelected || "",
};
question.answerPair = answerPair;
if (!q.suppressQuestion) {
this.questions.push(question);
}