fix: fix undefined error for database length

This commit is contained in:
Marius
2024-06-07 13:04:30 +02:00
parent 65254f1686
commit 936cf76a4c
10 changed files with 10 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ export const ShowInternalMongoCredentials = ({ mongoId }: Props) => {
<Label>Internal Connection URL </Label>
<Input
disabled
value={`mongodb://${data?.databaseUser}:${'*'.repeat(data?.databasePassword.length)}@${data?.appName}:27017`}
value={`mongodb://${data?.databaseUser}:${'*'.repeat(data?.databasePassword.length || 8)}@${data?.appName}:27017`}
/>
</div>
</div>