tuain-ng-forms-lib 12.0.72 → 12.0.73

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.
@@ -2533,11 +2533,12 @@ class BasicFormComponent {
2533
2533
  }
2534
2534
  subscribeSectionActivation() {
2535
2535
  const formSections = this._formStructure.sections;
2536
- if (Array.isArray(formSections)) {
2537
- formSections.forEach(section => {
2538
- section.activation.subscribe(code => this.launchSectionActivation(code));
2539
- section.inactivation.subscribe(code => this.launchSectionInactivation(code));
2540
- });
2536
+ const sectionNames = Object.keys(formSections);
2537
+ for (let index = 0; index < sectionNames.length; index++) {
2538
+ const sectionName = sectionNames[index];
2539
+ const section = formSections[sectionName];
2540
+ section.activation.subscribe(code => this.launchSectionActivation(code));
2541
+ section.inactivation.subscribe(code => this.launchSectionInactivation(code));
2541
2542
  }
2542
2543
  }
2543
2544
  subscribeFieldsSubjects() {