From c1eeee4e3942fddc5247e294fe6ce567d1a204b7 Mon Sep 17 00:00:00 2001 From: Timo De Meyst Date: Thu, 24 Apr 2025 16:18:53 +0200 Subject: [PATCH] chore: questionInput wordt enkel leeggemaakt als vraag verstuurd is --- frontend/src/views/learning-paths/LearningPathPage.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/views/learning-paths/LearningPathPage.vue b/frontend/src/views/learning-paths/LearningPathPage.vue index e329b4f9..0e050477 100644 --- a/frontend/src/views/learning-paths/LearningPathPage.vue +++ b/frontend/src/views/learning-paths/LearningPathPage.vue @@ -182,11 +182,10 @@ import type { GroupDTO } from "@dwengo-1/common/interfaces/group"; if (questionInput.value != "") { createQuestionMutation.mutate(questionData, { onSuccess: () => { - questionInput.value = "question:..."; // Clear the input field after submission + questionInput.value = ""; // Clear the input field after submission }, onError: (e) => { console.error(e) - questionInput.value = ""; // Clear the input field after submission }, }) } else {