Skip to content

Commit 913bcf4

Browse files
authored
Merge pull request #1617 from RedisInsight/bugfix/RI-4065_db_index_addform
#RI-4065 - fix db index add form value
2 parents 84cb39b + c045981 commit 913bcf4

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
@@ -319,7 +319,7 @@ const InstanceFormWrapper = (props: Props) => {
319319
sentinelMasterUsername,
320320
sentinelMasterPassword,
321321
} = values
322-
const database: any = { name, host, port: +port, db: db || 0, username, password }
322+
const database: any = { name, host, port: +port, db: +(db || 0), username, password }
323323

324324
// add tls & ssh for database (modifies database object)
325325
applyTlSDatabase(database, tlsSettings)

0 commit comments

Comments
 (0)