From c68525aa597242c8259b93e9bcda27bd1ef5304e Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 05:25:34 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../settings/web-server/edit-traefik-env.tsx | 12 ++++++----- .../web-server/manage-traefik-ports.tsx | 20 ++++++++++--------- .../hooks/use-health-check-after-mutation.ts | 8 +------- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx b/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx index 0fd136ea4..482b98579 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/edit-traefik-env.tsx @@ -47,11 +47,13 @@ export const EditTraefikEnv = ({ children, serverId }: Props) => { const { mutateAsync, isLoading, error, isError } = api.settings.writeTraefikEnv.useMutation(); - const { execute: executeWithHealthCheck, isExecuting: isHealthCheckExecuting } = - useHealthCheckAfterMutation({ - initialDelay: 5000, - successMessage: "Traefik Env Updated", - }); + const { + execute: executeWithHealthCheck, + isExecuting: isHealthCheckExecuting, + } = useHealthCheckAfterMutation({ + initialDelay: 5000, + successMessage: "Traefik Env Updated", + }); const form = useForm({ defaultValues: { diff --git a/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx b/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx index e38be72d6..73973ef06 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx @@ -79,15 +79,17 @@ export const ManageTraefikPorts = ({ children, serverId }: Props) => { const { mutateAsync: updatePorts, isLoading } = api.settings.updateTraefikPorts.useMutation(); - const { execute: executeWithHealthCheck, isExecuting: isHealthCheckExecuting } = - useHealthCheckAfterMutation({ - initialDelay: 5000, - successMessage: t("settings.server.webServer.traefik.portsUpdated"), - onSuccess: () => { - refetchPorts(); - setOpen(false); - }, - }); + const { + execute: executeWithHealthCheck, + isExecuting: isHealthCheckExecuting, + } = useHealthCheckAfterMutation({ + initialDelay: 5000, + successMessage: t("settings.server.webServer.traefik.portsUpdated"), + onSuccess: () => { + refetchPorts(); + setOpen(false); + }, + }); useEffect(() => { if (currentPorts) { diff --git a/apps/dokploy/hooks/use-health-check-after-mutation.ts b/apps/dokploy/hooks/use-health-check-after-mutation.ts index 0fc03025c..e2df72720 100644 --- a/apps/dokploy/hooks/use-health-check-after-mutation.ts +++ b/apps/dokploy/hooks/use-health-check-after-mutation.ts @@ -66,13 +66,7 @@ export const useHealthCheckAfterMutation = ({ await new Promise((resolve) => setTimeout(resolve, pollInterval)); await pollUntilHealthy(); - }, [ - checkHealth, - successMessage, - reloadOnSuccess, - onSuccess, - pollInterval, - ]); + }, [checkHealth, successMessage, reloadOnSuccess, onSuccess, pollInterval]); const execute = useCallback( async (mutationFn: () => Promise): Promise => {