mmhglobal-dynamicform 2.5.0 → 2.5.1

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.
@@ -11778,9 +11778,15 @@ class ZudfComponent extends ContainerFieldBase {
11778
11778
  // Manually patch the component form control value
11779
11779
  const zudfForm = zudfGroup.form;
11780
11780
  const componentFormControl = zudfForm.controls[item.value];
11781
- childComponent.setSelectOption(filteredSelectionOptions);
11782
- componentFormControl.patchValue(zudfGroup.zModel[item.value]);
11783
- this.cdr.detectChanges();
11781
+ if (componentFormControl) {
11782
+ childComponent.setSelectOption(filteredSelectionOptions);
11783
+ componentFormControl.patchValue(zudfGroup.zModel[item.value]);
11784
+ this.cdr.detectChanges();
11785
+ }
11786
+ else {
11787
+ console.log('Unable to get formcontrol for ' + item.value);
11788
+ console.log(zudfForm);
11789
+ }
11784
11790
  }
11785
11791
  });
11786
11792
  }