diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/health-check-form.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/health-check-form.tsx index 06c8eb94a6..fae7966f84 100644 --- a/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/health-check-form.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/health-check-form.tsx @@ -127,7 +127,8 @@ export const HealthCheckForm = ({ id, type }: HealthCheckFormProps) => { }; const addTestCommand = () => { - form.setValue("Test", [...testCommands, ""]); + const newItems = testCommands.length === 0 ? ["", ""] : [""]; + form.setValue("Test", [...testCommands, ...newItems]); }; const updateTestCommand = (index: number, value: string) => {