diff --git a/libs/ui-lib/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx b/libs/ui-lib/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx index fb7639dd7a..70ce7c61ed 100644 --- a/libs/ui-lib/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +++ b/libs/ui-lib/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx @@ -66,7 +66,7 @@ const getPatches = (values: NodePoolFormValues, nodePool: NodePoolK8sResource) = ); } } else { - if (!!nodePool.spec.replicas) { + if (nodePool.spec.replicas !== undefined) { patches.push({ op: 'replace', value: values.count, @@ -127,7 +127,7 @@ const ManageHostsModal = ({ agentLabels: labelsToFormikValue( nodePool.spec.platform?.agent?.agentLabelSelector?.matchLabels || {}, ), - count: nodePool.spec.replicas || 1, + count: nodePool.spec.replicas || 0, useAutoscaling: !!nodePool.spec.autoScaling, autoscaling: { minReplicas: nodePool.spec.autoScaling?.min || 1,