This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch feat/1.3.0/ui in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 1eefb1eb5d8811602fbf09e04f0ece506c89f184 Author: shuai <[email protected]> AuthorDate: Thu Mar 21 18:04:40 2024 +0800 fix: reportmodal close reset default value --- 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,
