impl improvements according to greptile

This commit is contained in:
Tuan Dang
2025-04-17 23:08:33 -07:00
parent c6cd3a8cc0
commit 846a5a6e19
3 changed files with 25 additions and 19 deletions
@@ -15,8 +15,8 @@ import {
const schema = z
.object({
defaultUserSshCaId: z.string().optional(),
defaultHostSshCaId: z.string().optional()
defaultUserSshCaId: z.string(),
defaultHostSshCaId: z.string()
})
.required();
@@ -40,8 +40,8 @@ export const ProjectSshConfigCasSection = () => {
useEffect(() => {
if (sshConfig) {
reset({
defaultUserSshCaId: sshConfig.defaultUserSshCaId || undefined,
defaultHostSshCaId: sshConfig.defaultHostSshCaId || undefined
defaultUserSshCaId: sshConfig.defaultUserSshCaId || "",
defaultHostSshCaId: sshConfig.defaultHostSshCaId || ""
});
}
}, [sshConfig]);