Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 12cd1eb

Browse files
author
Lukas Korte
committed
Fix #451
1 parent c41b73e commit 12cd1eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/webFrontend/src/app/unit/task-unit/task-unit.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export class TaskUnitComponent implements OnInit {
3333
this.progress = {
3434
unit: this.taskUnit._id,
3535
course: this.courseId,
36-
answers: {},
3736
};
3837
this.resetProgressAnswers();
3938

@@ -64,6 +63,8 @@ export class TaskUnitComponent implements OnInit {
6463
}
6564

6665
resetProgressAnswers() {
66+
this.progress.answers = {};
67+
6768
this.taskUnit.tasks.forEach(task => {
6869
// Initialize all as unchecked
6970
this.progress.answers[task._id] = {};

0 commit comments

Comments
 (0)