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

fix toast error (#10804)

This commit is contained in:
Ali 2023-12-08 12:55:29 +13:00 committed by GitHub
parent c1a01558d0
commit 9978b88ed4
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));