Merge pull request #270 from Dokploy/fix/undefined-host-databases

fix(databases): add ip to useeffect deps
This commit is contained in:
Mauricio Siu
2024-07-25 00:00:00 -06:00
committed by GitHub
5 changed files with 5 additions and 1 deletions

View File

@@ -90,6 +90,7 @@ export const ShowExternalMariadbCredentials = ({ mariadbId }: Props) => {
form,
data?.databaseName,
data?.databaseUser,
ip,
]);
return (
<>

View File

@@ -90,6 +90,7 @@ export const ShowExternalMongoCredentials = ({ mongoId }: Props) => {
data?.databasePassword,
form,
data?.databaseUser,
ip,
]);
return (

View File

@@ -91,6 +91,7 @@ export const ShowExternalMysqlCredentials = ({ mysqlId }: Props) => {
data?.databaseName,
data?.databaseUser,
form,
ip,
]);
return (
<>

View File

@@ -92,6 +92,7 @@ export const ShowExternalPostgresCredentials = ({ postgresId }: Props) => {
data?.databasePassword,
form,
data?.databaseName,
ip,
]);
return (

View File

@@ -85,7 +85,7 @@ export const ShowExternalRedisCredentials = ({ redisId }: Props) => {
};
setConnectionUrl(buildConnectionUrl());
}, [data?.appName, data?.externalPort, data?.databasePassword, form]);
}, [data?.appName, data?.externalPort, data?.databasePassword, form, ip]);
return (
<>
<div className="flex w-full flex-col gap-5 ">