refactor: allow to se a empty registry

This commit is contained in:
Mauricio Siu 2024-05-18 17:37:35 -06:00
parent f784a4f989
commit 7961591009

View File

@ -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}
</SelectItem>
))}
<SelectItem value={"none"}>None</SelectItem>
<SelectLabel>
Registries ({registries?.length})
</SelectLabel>