feat: vragen worden automatische geüpdate als er een nieuwe wordt gesteld

This commit is contained in:
Timo De Meyst 2025-04-24 17:25:06 +02:00
parent ff702de379
commit 7296fa8f18

View file

@ -183,6 +183,7 @@ import type { GroupDTO } from "@dwengo-1/common/interfaces/group";
createQuestionMutation.mutate(questionData, { createQuestionMutation.mutate(questionData, {
onSuccess: () => { onSuccess: () => {
questionInput.value = ""; // Clear the input field after submission questionInput.value = ""; // Clear the input field after submission
getQuestionsQuery.refetch(); // Reload the questions
}, },
onError: (e) => { onError: (e) => {
console.error(e) console.error(e)