mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
fix(k8s) parse empty configuration as empty string yaml instead of {} (ce#395) (#4805)
Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
81de55fedd
commit
95894e8047
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue