fix(frontend): override configuration keys disappear (#4547) (#4560)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
pull/3937/head
cong meng 2020-12-10 15:13:02 +13:00 committed by GitHub
parent 890bbf4058
commit 1ad4623b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class KubernetesApplicationConverter {
res.PublishedPorts = ports;
}
if (data.spec.templates) {
if (data.spec.template) {
res.Volumes = data.spec.template.spec.volumes ? data.spec.template.spec.volumes : [];
} else {
res.Volumes = data.spec.volumes;