Skip to content

Commit 23279fe

Browse files
#RI-4064 - update FE initial values
1 parent 6ff0354 commit 23279fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceFormWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const getInitialValues = (editedInstance: Nullable<Instance>) => ({
6666
tls: !!editedInstance?.tls ?? false,
6767
ssh: !!editedInstance?.ssh ?? false,
6868
sshPassType: editedInstance?.sshOptions
69-
? (editedInstance.sshOptions.password ? SshPassType.Password : SshPassType.PrivateKey)
69+
? (editedInstance.sshOptions.privateKey ? SshPassType.PrivateKey : SshPassType.Password)
7070
: SshPassType.Password
7171
})
7272

0 commit comments

Comments
 (0)