Skip to content

Commit

Permalink
Fix Quiz preview in reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jun 14, 2024
1 parent cb321e3 commit 44a4e10
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
},
computed: {
selectedQuestions() {
return this.quiz.question_sources;
return this.quiz.question_sources.reduce((acc, section) => {
acc = [...acc, ...section.questions];
return acc;
}, []);
},
quizIsRandomized() {
return !this.quiz.learners_see_fixed_order;
Expand Down

0 comments on commit 44a4e10

Please sign in to comment.