fix(cluster): add registry none when is empty registry id

This commit is contained in:
Mauricio Siu
2024-09-16 15:21:39 -06:00
parent 754bb75e2a
commit 5f558f3773

View File

@@ -81,7 +81,10 @@ export const ShowClusterSettings = ({ applicationId }: Props) => {
const onSubmit = async (data: AddCommand) => { const onSubmit = async (data: AddCommand) => {
await mutateAsync({ await mutateAsync({
applicationId, applicationId,
registryId: data?.registryId === "none" ? null : data?.registryId, registryId:
data?.registryId === "none" || !data?.registryId
? null
: data?.registryId,
replicas: data?.replicas, replicas: data?.replicas,
}) })
.then(async () => { .then(async () => {