Skip to content

Commit

Permalink
fix: httpheaderrewrite data lost when view update in step2 (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiran authored Sep 4, 2020
1 parent f9db078 commit fbcbd76
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/Route/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
/>
);
Expand Down

0 comments on commit fbcbd76

Please sign in to comment.