Skip to content

Commit b301da2

Browse files
Merge pull request #3072 from RedisInsight/fe/feature/RI-5436_Requires_TLS_Client_not_expanded
#RI-5436 - [Regression] Add 'Requires TLS Client' form is not expaned
2 parents 30b5d21 + 05c86aa commit b301da2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

redisinsight/ui/src/pages/home/components/sentinel-connection/sentinel-connection-form/SentinelConnectionForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const SentinelConnectionForm = (props: Props) => {
7272
initialValues,
7373
validate,
7474
enableReinitialize: true,
75+
validateOnMount: true,
7576
onSubmit: (values: any) => {
7677
onSubmit(values)
7778
},

redisinsight/ui/src/pages/home/utils/form.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export const autoFillFormDetails = (
215215
}
216216

217217
case InstanceType.Sentinel: {
218-
return ({
218+
return getFormValues({
219219
host: details.host || initialValues.host || 'localhost',
220220
port: `${details.port || initialValues.port || 9443}`,
221221
username: details.username || '',
@@ -225,7 +225,7 @@ export const autoFillFormDetails = (
225225
}
226226

227227
case InstanceType.Standalone: {
228-
return (getFormValues({
228+
return getFormValues({
229229
name: details.hostname || initialValues.name || 'localhost:6379',
230230
host: details.host || initialValues.host || 'localhost',
231231
port: `${details.port || initialValues.port || 9443}`,
@@ -235,7 +235,7 @@ export const autoFillFormDetails = (
235235
db: details.dbNumber,
236236
ssh: false,
237237
sshPassType: SshPassType.Password
238-
}))
238+
})
239239
}
240240
default: {
241241
return {}

0 commit comments

Comments
 (0)