Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Oct 14, 2024
1 parent a006f88 commit 4998b30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ const fetchDifficultQuestions = async exam => {
true,
);

const allQuestions = exam.question_sources.reduce((qs, section) => {
qs = [...qs, ...section.questions];

return qs;
}, []);
const allQuestions = exam.question_sources.reduce(
(qs, section) => [...qs, ...section.questions],
[],
);

allQuestions.forEach(question => {
const questionStats = correctnessStats.find(stat => stat.item === question.item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@
});
},
exportCSV() {
this.$refs.table.exportCSV?.();
if (typeof this.$refs.table.exportCSV === 'function') {
this.$refs.table.exportCSV();
}
},
},
$trs: {
Expand Down

0 comments on commit 4998b30

Please sign in to comment.