@sprucelabs/heartwood-view-controllers 128.6.2 → 128.6.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.
|
@@ -501,6 +501,15 @@ export default class FormViewController extends AbstractViewController {
|
|
|
501
501
|
this.setSections(sections);
|
|
502
502
|
}
|
|
503
503
|
setSections(sections) {
|
|
504
|
+
var _a;
|
|
505
|
+
for (const section of sections) {
|
|
506
|
+
const fields = ((_a = section.fields) !== null && _a !== void 0 ? _a : []);
|
|
507
|
+
for (const field of fields) {
|
|
508
|
+
if (field === null || field === void 0 ? void 0 : field.fieldDefinition) {
|
|
509
|
+
this.updateField(field.name, field);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
504
513
|
this.model.sections = sections;
|
|
505
514
|
this.triggerRender();
|
|
506
515
|
}
|
|
@@ -481,6 +481,14 @@ class FormViewController extends Abstract_vc_1.default {
|
|
|
481
481
|
this.setSections(sections);
|
|
482
482
|
}
|
|
483
483
|
setSections(sections) {
|
|
484
|
+
for (const section of sections) {
|
|
485
|
+
const fields = (section.fields ?? []);
|
|
486
|
+
for (const field of fields) {
|
|
487
|
+
if (field?.fieldDefinition) {
|
|
488
|
+
this.updateField(field.name, field);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
484
492
|
this.model.sections = sections;
|
|
485
493
|
this.triggerRender();
|
|
486
494
|
}
|
package/package.json
CHANGED