mirror of https://github.com/portainer/portainer
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
parent
81de55fedd
commit
95894e8047
|
@ -52,6 +52,8 @@ class KubernetesConfigurationHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static parseData(formValues) {
|
static parseData(formValues) {
|
||||||
|
if (!formValues.Data.length) return '';
|
||||||
|
|
||||||
const data = _.reduce(
|
const data = _.reduce(
|
||||||
formValues.Data,
|
formValues.Data,
|
||||||
(acc, entry) => {
|
(acc, entry) => {
|
||||||
|
|
Loading…
Reference in New Issue