Skip to content

Commit

Permalink
Update src/main/webapp/app/exercises/quiz/manage/quiz-exercise-manage…
Browse files Browse the repository at this point in the history
…-buttons.component.ts

Co-authored-by: Lucas Welscher <ga53foy@mytum.de>
  • Loading branch information
muradium and Strohgelaender authored Apr 10, 2024
1 parent 9d76b7f commit 05bc019
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export class QuizExerciseManageButtonsComponent implements OnInit {
* @param exportAll If true exports all questions, else exports only those whose export flag is true
*/
exportQuizExercise(exportAll: boolean) {
this.quizExerciseService.find(this.quizExercise.id!).subscribe(async (response: HttpResponse<QuizExercise>) => {
this.quizExercise = response.body!;
this.quizExerciseService.exportQuiz(this.quizExercise.quizQuestions, exportAll, this.quizExercise.title);
this.quizExerciseService.find(this.quizExercise.id!).subscribe((response: HttpResponse<QuizExercise>) => {
const exercise = response.body!;
this.quizExerciseService.exportQuiz(exercise.quizQuestions, exportAll, exercise.title);
});
}

Expand Down

0 comments on commit 05bc019

Please sign in to comment.