feat: reload answers als er nieuwe gepost worden
This commit is contained in:
parent
760e86788f
commit
cfe7342434
1 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,10 @@ import authService from "@/services/auth/auth-service";
|
||||||
};
|
};
|
||||||
if (answer.value != "") {
|
if (answer.value != "") {
|
||||||
createAnswerMutation.mutate(answerData, {
|
createAnswerMutation.mutate(answerData, {
|
||||||
onSuccess: () => {answer.value = "";}
|
onSuccess: () => {
|
||||||
|
answer.value = "";
|
||||||
|
answersQuery.refetch();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
alert("Please type an answer before submitting") //TODO: i18n
|
alert("Please type an answer before submitting") //TODO: i18n
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue