1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

fix toast error (#10724)

This commit is contained in:
Matt Hook 2023-12-07 12:01:21 +13:00 committed by GitHub
parent 6aa0a1ffa9
commit 6d0aefd7bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));