diff --git a/kolibri/core/assets/src/exams/utils.js b/kolibri/core/assets/src/exams/utils.js index c4a484ee5aa..81baf436853 100644 --- a/kolibri/core/assets/src/exams/utils.js +++ b/kolibri/core/assets/src/exams/utils.js @@ -255,7 +255,7 @@ export function getExamReport(examId, tryIndex = 0, questionNumber = 0, interact }); } -export function annotateSections(sections, questions) { +export function annotateSections(sections, questions = []) { // Adding the additional startQuestionNumber and endQuestionNumber fields to each section // allows to more easily identify the overall place in the quiz that a question is. // This is useful for deciding which section is currently active based on the global diff --git a/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizPreviewPage.vue b/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizPreviewPage.vue index ca23aa7b380..88c50e5dbb9 100644 --- a/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizPreviewPage.vue +++ b/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizPreviewPage.vue @@ -20,7 +20,7 @@

@@ -66,12 +66,6 @@ }; }, computed: { - selectedQuestions() { - return this.quiz.question_sources.reduce((acc, section) => { - acc = [...acc, ...section.questions]; - return acc; - }, []); - }, quizIsRandomized() { return !this.quiz.learners_see_fixed_order; },