This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch release-v0.15
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.15 by this push:
new b8867d562 fix(config-ui): the priority of the initial value and get
value is wrong (#4229)
b8867d562 is described below
commit b8867d56219861f2b9ed6d0855caae642088eca1
Author: 青湛 <[email protected]>
AuthorDate: Wed Jan 18 13:46:40 2023 +0800
fix(config-ui): the priority of the initial value and get value is wrong
(#4229)
---
config-ui/src/pages/connection/form/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config-ui/src/pages/connection/form/index.tsx
b/config-ui/src/pages/connection/form/index.tsx
index 66ace0091..ef352f283 100644
--- a/config-ui/src/pages/connection/form/index.tsx
+++ b/config-ui/src/pages/connection/form/index.tsx
@@ -45,8 +45,8 @@ export const ConnectionFormPage = () => {
useEffect(() => {
setForm({
...form,
- ...(connection ?? {}),
...(omit(initialValues, 'rateLimitPerHour') ?? {}),
+ ...(connection ?? {}),
});
}, [initialValues, connection]);