From 9978b88ed4144a468e2c32f1a0d4d0c44631ef29 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:55:29 +1300 Subject: [PATCH] fix toast error (#10804) --- .../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));