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

robin0716 pushed a commit to branch feat/1.3.5/embed
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/feat/1.3.5/embed by this push:
     new cde7a0fc fix(plugins): Fixed the issue that the form data was not 
updated when switching routes. #968
cde7a0fc is described below

commit cde7a0fc4c54d048dc22d48a8d23d79497ea3864
Author: robin <[email protected]>
AuthorDate: Mon Jun 3 17:42:08 2024 +0800

    fix(plugins): Fixed the issue that the form data was not updated when 
switching routes. #968
---
 ui/src/pages/Admin/Plugins/Config/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/pages/Admin/Plugins/Config/index.tsx 
b/ui/src/pages/Admin/Plugins/Config/index.tsx
index c8e66f13..e2b1e185 100644
--- a/ui/src/pages/Admin/Plugins/Config/index.tsx
+++ b/ui/src/pages/Admin/Plugins/Config/index.tsx
@@ -86,7 +86,7 @@ const Config = () => {
     };
     setSchema(result);
     setUISchema(uiConf);
-    setFormData(mergeFormData(initFormData(result), formData));
+    setFormData(mergeFormData(formData, initFormData(result)));
   }, [data?.config_fields]);
 
   const onSubmit = (evt) => {

Reply via email to