Skip to content

Commit

Permalink
feat: clearing text box after submitting text in client
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienHdz committed Oct 16, 2023
1 parent 2543f29 commit 3bd0959
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/app/messages/messages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class MessagesComponent implements AfterViewInit {
const userMessage = this.uploadForm.value.userMessage;
if (userMessage) {
this.addUserMessage(userMessage);
this.uploadForm.controls['userMessage'].setValue('')
this.dataService.getMessageResponse(userMessage)
.subscribe(response => {
this.addServerMessage(response.script_response);
Expand Down

0 comments on commit 3bd0959

Please sign in to comment.