This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/test by this push:
     new b494b67d fix: reportmodal close reset default value (#870)
b494b67d is described below

commit b494b67dc280f0270f5dc65b499cf95c416aba1e
Author: dashuai <[email protected]>
AuthorDate: Thu Mar 21 18:05:17 2024 +0800

    fix: reportmodal close reset default value (#870)
---
 ui/src/hooks/useReportModal/index.tsx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/src/hooks/useReportModal/index.tsx 
b/ui/src/hooks/useReportModal/index.tsx
index bfe17111..e20b8eb6 100644
--- a/ui/src/hooks/useReportModal/index.tsx
+++ b/ui/src/hooks/useReportModal/index.tsx
@@ -119,6 +119,10 @@ const useReportModal = (callback?: () => void) => {
   };
 
   const onClose = () => {
+    setReportType({
+      type: -1,
+      haveContent: false,
+    });
     setContent({
       value: '',
       isInvalid: false,

Reply via email to