CSR-110: add additional check to avoid console error in question-chain
This commit is contained in:
parent
916ff821f6
commit
d6f7e60b07
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ export default {
|
||||||
return moldingQuestionsFromPageData && Object.keys(moldingQuestionsFromPageData).length > 0;
|
return moldingQuestionsFromPageData && Object.keys(moldingQuestionsFromPageData).length > 0;
|
||||||
},
|
},
|
||||||
showThisQuestionChain(glass, i) {
|
showThisQuestionChain(glass, i) {
|
||||||
if (glass.questions?.length < 1 || glass.isSuppressedPart) { return false; } // return false if no questions or if suppressed
|
if (!glass.questions || glass.questions?.length < 1 || glass.isSuppressedPart) { return false; } // return false if no questions or if suppressed
|
||||||
return this.currentGlassIndex === i || glass.answerData?.answerResult?.length > 0;
|
return this.currentGlassIndex === i || glass.answerData?.answerResult?.length > 0;
|
||||||
},
|
},
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue