Skip to content
Snippets Groups Projects
Verified Commit 6ac8044c authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Fix bug where items got re-added on every function call

parent 428822b9
1 merge request!92Resolve "content types (logic)"
......@@ -47,6 +47,7 @@ export class CreatorChoiceContentComponent implements OnInit {
}
fillCorrectAnswers() {
this.correctAnswers = [];
for (let i = 0; i < this.content.options.length; i++) {
this.correctAnswers.push(new CorrectAnswer(this.content.options[i], this.content.correctOptionIndexes.includes(i)));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment