fix(config-ui): the priority of the initial value and get value is wrong (#4229)
diff --git a/config-ui/src/pages/connection/form/index.tsx b/config-ui/src/pages/connection/form/index.tsx
index 66ace00..ef352f2 100644
--- a/config-ui/src/pages/connection/form/index.tsx
+++ b/config-ui/src/pages/connection/form/index.tsx
@@ -45,8 +45,8 @@
useEffect(() => {
setForm({
...form,
- ...(connection ?? {}),
...(omit(initialValues, 'rateLimitPerHour') ?? {}),
+ ...(connection ?? {}),
});
}, [initialValues, connection]);