diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx index 53b241560..247fd3ebf 100644 --- a/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx @@ -79,7 +79,7 @@ export const ShowClusterSettings = ({ id, type }: Props) => { const form = useForm({ defaultValues: { - ...(type === "application" && "registryId" in data + ...(type === "application" && data && "registryId" in data ? { registryId: data?.registryId || "", } @@ -92,7 +92,7 @@ export const ShowClusterSettings = ({ id, type }: Props) => { useEffect(() => { if (data?.command) { form.reset({ - ...(type === "application" && "registryId" in data + ...(type === "application" && data && "registryId" in data ? { registryId: data?.registryId || "", }