From d8bc97794c5d890c3bc5371e8e86f99a28e47326 Mon Sep 17 00:00:00 2001 From: Pierre-Philippe Date: Wed, 8 Jan 2025 10:18:14 +0100 Subject: [PATCH] feat(pci.kubernetes): fix pr ref: TAPC-2080 Signed-off-by: Pierre-Philippe --- .../apps/pci-kubernetes/src/pages/reset/ResetCluster.page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/manager/apps/pci-kubernetes/src/pages/reset/ResetCluster.page.tsx b/packages/manager/apps/pci-kubernetes/src/pages/reset/ResetCluster.page.tsx index 57b252850759..933298f472d4 100644 --- a/packages/manager/apps/pci-kubernetes/src/pages/reset/ResetCluster.page.tsx +++ b/packages/manager/apps/pci-kubernetes/src/pages/reset/ResetCluster.page.tsx @@ -94,7 +94,9 @@ export default function ResetClusterPage() { const [formState, setFormState] = useState({ workerNodesPolicy: WORKER_NODE_POLICIES.DELETE, selectedVersion: getFormatedKubeVersion(kubernetesCluster?.version || ''), - privateNetworkId: kubernetesCluster?.privateNetworkId ?? undefined, + ...(!!kubernetesCluster?.privateNetworkId && { + privateNetworks: kubernetesCluster?.privateNetworkId, + }), subnet: null, loadBalancersSubnet: null, gateway: {