fix(k8s) parse empty configuration as empty string yaml instead of {} (ce#395) (#4805)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
pull/4820/head
cong meng 2021-02-02 15:03:11 +13:00 committed by GitHub
parent 81de55fedd
commit 95894e8047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ class KubernetesConfigurationHelper {
}
static parseData(formValues) {
if (!formValues.Data.length) return '';
const data = _.reduce(
formValues.Data,
(acc, entry) => {