feat(backend): Overzicht over submissions toegevoegd.

This commit is contained in:
Gerald Schmittinger 2025-04-18 18:53:20 +02:00
parent cc92727a09
commit 4dc880c2f7
9 changed files with 165 additions and 39 deletions

View file

@ -38,7 +38,6 @@
}
function attachQuestionListeners(): void {
let counter = 0;
forEachQuestion((index, _name, type, element) => {
getGiftAdapterForType(type)?.installListener(
element,
@ -46,7 +45,6 @@
submissionData.value = copyArrayWith(index, newAnswer, submissionData.value ?? [])
}
);
counter++;
});
}
@ -62,7 +60,12 @@
submissionData.value = answers;
}
onMounted(() => nextTick(() => attachQuestionListeners()));
onMounted(() =>
nextTick(() => {
attachQuestionListeners()
setAnswers(props.submissionData ?? []);
})
);
watch(() => props.learningObjectContent, async () => {
await nextTick();