chore: questionInput wordt enkel leeggemaakt als vraag verstuurd is
This commit is contained in:
		
							parent
							
								
									9bc0c59249
								
							
						
					
					
						commit
						c1eeee4e39
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -182,11 +182,10 @@ import type { GroupDTO } from "@dwengo-1/common/interfaces/group"; | ||||||
|         if (questionInput.value != "") { |         if (questionInput.value != "") { | ||||||
|             createQuestionMutation.mutate(questionData, { |             createQuestionMutation.mutate(questionData, { | ||||||
|                 onSuccess: () => { |                 onSuccess: () => { | ||||||
|                     questionInput.value = "question:..."; // Clear the input field after submission |                     questionInput.value = ""; // Clear the input field after submission | ||||||
|                 }, |                 }, | ||||||
|                 onError: (e) => { |                 onError: (e) => { | ||||||
|                     console.error(e) |                     console.error(e) | ||||||
|                     questionInput.value = ""; // Clear the input field after submission |  | ||||||
|                 }, |                 }, | ||||||
|             }) |             }) | ||||||
|         } else { |         } else { | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst