Skip to content

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: Fix old user information still showing when editing repeatedly

sy-recordsbbefbbcb6446
diff --git a/ui/src/hooks/useChangeProfileModal/index.tsx b/ui/src/hooks/useChangeProfileModal/index.tsx
index 6d0ce456..6f85e25d 100644
--- a/ui/src/hooks/useChangeProfileModal/index.tsx
+++ b/ui/src/hooks/useChangeProfileModal/index.tsx
@@ -112,7 +112,7 @@ const useChangeProfileModal = (props: IProps = {}, userData) => {
}>(null);
const onClose = () => {
- setFormData(initFormData(schema));
+ setFormData(formData);
setVisibleState(false);
};