From 6d0aefd7bbe0db52d953f6264471194a1b0bfb32 Mon Sep 17 00:00:00 2001 From: Matt Hook Date: Thu, 7 Dec 2023 12:01:21 +1300 Subject: [PATCH] fix toast error (#10724) --- .../views/applications/create/createApplicationController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/kubernetes/views/applications/create/createApplicationController.js b/app/kubernetes/views/applications/create/createApplicationController.js index 495b151a8..044d55610 100644 --- a/app/kubernetes/views/applications/create/createApplicationController.js +++ b/app/kubernetes/views/applications/create/createApplicationController.js @@ -1140,6 +1140,8 @@ class KubernetesCreateApplicationController { this.nodesLabels, this.ingresses ); + + this.formValues.Services = this.formValues.Services || []; this.originalServicePorts = structuredClone(this.formValues.Services.flatMap((service) => service.Ports)); this.originalIngressPaths = structuredClone(this.originalServicePorts.flatMap((port) => port.ingressPaths).filter((ingressPath) => ingressPath.Host));