From 5f558f3773e90637471a2aec192e3c1e20c1f071 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:21:39 -0600 Subject: [PATCH] fix(cluster): add registry none when is empty registry id --- .../application/advanced/cluster/show-cluster-settings.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 4078ae4c..d8d32e19 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 @@ -81,7 +81,10 @@ export const ShowClusterSettings = ({ applicationId }: Props) => { const onSubmit = async (data: AddCommand) => { await mutateAsync({ applicationId, - registryId: data?.registryId === "none" ? null : data?.registryId, + registryId: + data?.registryId === "none" || !data?.registryId + ? null + : data?.registryId, replicas: data?.replicas, }) .then(async () => {