From 7961591009fa56623bb03f69e6a98be6f49d113c Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 18 May 2024 17:37:35 -0600 Subject: [PATCH] refactor: allow to se a empty registry --- .../application/advanced/cluster/show-cluster-settings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx b/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx index d5a426f50..3732e5092 100644 --- a/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx +++ b/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx @@ -80,7 +80,7 @@ export const ShowClusterSettings = ({ applicationId }: Props) => { const onSubmit = async (data: AddCommand) => { await mutateAsync({ applicationId, - registryId: data?.registryId, + registryId: data?.registryId === "none" ? null : data?.registryId, replicas: data?.replicas, }) .then(async () => { @@ -177,6 +177,7 @@ export const ShowClusterSettings = ({ applicationId }: Props) => { {registry.registryName} ))} + None Registries ({registries?.length})