@websy/websy-designs 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2293,7 +2293,7 @@ class WebsyForm {
|
|
|
2293
2293
|
}
|
|
2294
2294
|
for (let key in d) {
|
|
2295
2295
|
this.options.fields.forEach(f => {
|
|
2296
|
-
if (f.field === key) {
|
|
2296
|
+
if (f.field === key && d[key]) {
|
|
2297
2297
|
this.setValue(key, d[key])
|
|
2298
2298
|
// f.value = d[key]
|
|
2299
2299
|
// const el = document.getElementById(`${this.elementId}_input_${f.field}`)
|
|
@@ -2298,7 +2298,7 @@ var WebsyForm = /*#__PURE__*/function () {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
var _loop = function _loop(key) {
|
|
2300
2300
|
_this16.options.fields.forEach(function (f) {
|
|
2301
|
-
if (f.field === key) {
|
|
2301
|
+
if (f.field === key && d[key]) {
|
|
2302
2302
|
_this16.setValue(key, d[key]);
|
|
2303
2303
|
// f.value = d[key]
|
|
2304
2304
|
// const el = document.getElementById(`${this.elementId}_input_${f.field}`)
|