mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
fix(app): avoid 'no label' error when deleting external app [EE-6019] (#11671)
This commit is contained in:
parent
9068cfd892
commit
5a2e6d0e50
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class KubernetesApplicationsController {
|
|||
} else {
|
||||
await this.KubernetesApplicationService.delete(application);
|
||||
|
||||
if (application.Metadata.labels[KubernetesPortainerApplicationStackNameLabel]) {
|
||||
if (application.Metadata.labels && application.Metadata.labels[KubernetesPortainerApplicationStackNameLabel]) {
|
||||
// Update applications in stack
|
||||
const stack = this.state.stacks.find((x) => x.Name === application.StackName);
|
||||
const index = stack.Applications.indexOf(application);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue