You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/09/04 06:25:28 UTC

[apisix-dashboard] branch master updated: fix: httpheaderrewrite data lost when view update in step2 (#436)

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

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new fbcbd76  fix: httpheaderrewrite data lost when view update in step2 (#436)
fbcbd76 is described below

commit fbcbd766b659daf1163912d2b9e52bf76bd843e8
Author: liuxiran <be...@126.com>
AuthorDate: Fri Sep 4 14:25:17 2020 +0800

    fix: httpheaderrewrite data lost when view update in step2 (#436)
---
 src/pages/Route/Create.tsx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/pages/Route/Create.tsx b/src/pages/Route/Create.tsx
index 39be889..8beba5b 100644
--- a/src/pages/Route/Create.tsx
+++ b/src/pages/Route/Create.tsx
@@ -156,11 +156,19 @@ const Page: React.FC<Props> = (props) => {
                   ...form2.getFieldsValue(),
                   ...data,
                 });
-                setStep2Data({ ...form2.getFieldsValue(), ...params } as RouteModule.Step2Data);
+                setStep2Data({
+                  ...step2Data,
+                  ...form2.getFieldsValue(),
+                  ...params,
+                } as RouteModule.Step2Data);
               });
               return;
             }
-            setStep2Data({ ...form2.getFieldsValue(), ...params } as RouteModule.Step2Data);
+            setStep2Data({
+              ...step2Data,
+              ...form2.getFieldsValue(),
+              ...params,
+            } as RouteModule.Step2Data);
           }}
         />
       );