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: formdata assignment order adjustment
shuaid180322f8894
diff --git a/ui/src/pages/Questions/Ask/index.tsx b/ui/src/pages/Questions/Ask/index.tsxindex 30398f2f..f9517936 100644--- a/ui/src/pages/Questions/Ask/index.tsx+++ b/ui/src/pages/Questions/Ask/index.tsx@@ -147,6 +147,7 @@ const Ask = () => {const file = fm<any>(decodeURIComponent(prefill));formData.title.value = file.attributes?.title;formData.content.value = file.body;+ setFormData({ ...formData });if (!queryTags && file.attributes?.tags) {updateTags(file.attributes.tags);}@@ -157,9 +158,8 @@ const Ask = () => {formData.answer_content.value = draft.answer_content;setCheckState(Boolean(draft.answer_content));setHasDraft(true);+ setFormData({ ...formData });}-- setFormData({ ...formData });} else {resetForm();}