From 3e1b3d9bf21848659368d94ad06d4cbba807566f Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 7 Feb 2024 18:06:09 +0530 Subject: [PATCH] fix: reset email box on discard --- frontend/src/components/CommunicationArea.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index 846c02721..93d8cc968 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -52,6 +52,12 @@ :discardButtonProps="{ onClick: () => { showEmailBox = false + newEmailEditor.subject = subject + newEmailEditor.toEmails = doc.data.email ? [doc.data.email] : [] + newEmailEditor.ccEmails = [] + newEmailEditor.bccEmails = [] + newEmailEditor.cc = false + newEmailEditor.bcc = false newEmail = '' }, }"