Skip to content

Commit

Permalink
fix(config-ui): the priority of the initial value and get value is wr…
Browse files Browse the repository at this point in the history
…ong (#4229)
  • Loading branch information
mintsweet authored Jan 18, 2023
1 parent 7b5cec0 commit b8867d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config-ui/src/pages/connection/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export const ConnectionFormPage = () => {
useEffect(() => {
setForm({
...form,
...(connection ?? {}),
...(omit(initialValues, 'rateLimitPerHour') ?? {}),
...(connection ?? {}),
});
}, [initialValues, connection]);

Expand Down

0 comments on commit b8867d5

Please sign in to comment.