mintsweet commented on code in PR #4222:
URL:
https://github.com/apache/incubator-devlake/pull/4222#discussion_r1073030958
##########
config-ui/src/pages/connection/form/index.tsx:
##########
@@ -104,7 +105,7 @@ export const ConnectionFormPage = () => {
{type === 'switch' && (
<S.SwitchWrapper>
<Switch
- checked={form[key] ?? initialValues?.[key] ?? false}
+ checked={form[key] ?? false}
Review Comment:
because the initial values will be set to form when the component is
initialized, it becomes meaningless here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]