CSR-803: remove unneeded property
This commit is contained in:
parent
325a0e24c3
commit
0ed0566395
1 changed files with 0 additions and 3 deletions
|
|
@ -41,12 +41,10 @@ export default {
|
||||||
await useValidateForm(); // do a test validation check, without triggering full validation
|
await useValidateForm(); // do a test validation check, without triggering full validation
|
||||||
|
|
||||||
this.questionData.map((q, i) => {
|
this.questionData.map((q, i) => {
|
||||||
let answerPair = [];
|
|
||||||
const question = {
|
const question = {
|
||||||
questionText: q.questionText,
|
questionText: q.questionText,
|
||||||
questionSequence: q.questionSequence,
|
questionSequence: q.questionSequence,
|
||||||
answers: q.answers.map((a) => {
|
answers: q.answers.map((a) => {
|
||||||
answerPair.push(a.nextQuestionSequence ? a.nextQuestionSequence : a.answerResult);
|
|
||||||
return {
|
return {
|
||||||
Text: a.answerText,
|
Text: a.answerText,
|
||||||
// Name will either be nextQuestionSequence or answerResult
|
// Name will either be nextQuestionSequence or answerResult
|
||||||
|
|
@ -65,7 +63,6 @@ export default {
|
||||||
}),
|
}),
|
||||||
answerSelected: q.answerSelected || "",
|
answerSelected: q.answerSelected || "",
|
||||||
};
|
};
|
||||||
question.answerPair = answerPair;
|
|
||||||
if (!q.suppressQuestion) {
|
if (!q.suppressQuestion) {
|
||||||
this.questions.push(question);
|
this.questions.push(question);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue