feat: vragen worden automatische geüpdate als er een nieuwe wordt gesteld
This commit is contained in:
parent
ff702de379
commit
7296fa8f18
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue