You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ro...@apache.org on 2024/06/03 09:42:24 UTC
(incubator-answer) branch feat/1.3.5/embed updated: fix(plugins): Fixed the issue that the form data was not updated when switching routes. #968
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 <ro...@rnode.me>
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) => {