A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: answer draft clear not right
shuaid133587462e6
diff --git a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsxindex 4b717ba1..33c8c40d 100644--- a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx+++ b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx@@ -67,6 +67,7 @@ const Index: FC<Props> = ({ visible = false, data, callback }) => {}, []);useEffect(() => {+ const draft = storageExpires.get(DRAFT_ANSWER_STORAGE_KEY);const { content } = formData;if (content.value) {@@ -77,7 +78,7 @@ const Index: FC<Props> = ({ visible = false, data, callback }) => {});setHasDraft(true);- } else {+ } else if (draft?.questionId === data.qid && !content.value) {removeDraft();}}, [formData.content.value]);